Fix for h2 missing from testing 95/32295/2
authorPamela Dragosh <pdragosh@research.att.com>
Tue, 20 Feb 2018 18:36:48 +0000 (13:36 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Tue, 20 Feb 2018 19:07:10 +0000 (14:07 -0500)
First submit for re-organizing pom.xml dependencies. H2 is ONLY
used for testing and should be loaded otherwise. We removed it
from policy/common so that is affecting these test.

Issue-ID: POLICY-626
Change-Id: Iba86e89f2cb26581b2b465091e829d6bdd66a37b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
BRMSGateway/pom.xml
ONAP-PDP-REST/pom.xml
ONAP-REST/pom.xml
POLICY-SDK-APP/pom.xml
pom.xml

index 4c88768..39e943b 100644 (file)
        <artifactId>BRMSGateway</artifactId>
        <description>This application will take in BRMS rules and acts as interface between PR and PDP XACML</description>
        <dependencies>
+               <dependency>
+                       <groupId>com.h2database</groupId>
+                       <artifactId>h2</artifactId>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.onap.policy.engine</groupId>
                        <artifactId>PolicyEngineAPI</artifactId>
index 34109c6..bd08a0e 100644 (file)
                </plugins>
        </build>
        <dependencies>
+               <dependency>
+                       <groupId>com.h2database</groupId>
+                       <artifactId>h2</artifactId>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.onap.policy.engine</groupId>
                        <artifactId>ONAP-PDP</artifactId>
index ef8c76e..71bf6d8 100644 (file)
        <packaging>jar</packaging>
 
        <dependencies>
+               <dependency>
+                       <groupId>com.h2database</groupId>
+                       <artifactId>h2</artifactId>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.onap.policy.engine</groupId>
                        <version>${project.version}</version>
index 1203797..55b78e5 100644 (file)
            <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/app/policyApp/CSS/**/*,src/main/webapp/app/policyApp/libs/**/*</sonar.exclusions>               
        </properties>
        <dependencies>
+               <dependency>
+                       <groupId>com.h2database</groupId>
+                       <artifactId>h2</artifactId>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.onap.portal.sdk</groupId>
                        <artifactId>epsdk-core</artifactId>
diff --git a/pom.xml b/pom.xml
index 33f9c4c..eba1c04 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
                <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
 
+               <!--
+               Shared between policy/* project repositories - same version 
+        -->
+               <h2.version>1.4.186</h2.version>
+
+               <!--
+               Shared between policy/* project repositories - different version 
+        -->
+
                <!-- Project common dependency versions -->
                <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
                <dmaap.version>1.0.0</dmaap.version>
          </plugins>
        </reporting>
 
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <groupId>com.h2database</groupId>
+                               <artifactId>h2</artifactId>
+                               <version>${h2.version}</version>
+                               <scope>test</scope>
+                       </dependency>
+               </dependencies>
+       </dependencyManagement>
+       
        <dependencies>
 
                <dependency>