add persistence libraries in the installation base 71/7671/1
authorJorge Hernandez <jh1730@att.com>
Wed, 16 Aug 2017 00:12:25 +0000 (19:12 -0500)
committerJorge Hernandez <jh1730@att.com>
Wed, 16 Aug 2017 00:15:08 +0000 (19:15 -0500)
to make db-enabled features to not worry about their
packaging in the copy-dependencies plugin in the
pom.xml

Change-Id: Ie20a61978f75d4dbe82ac7aba5f6d259fb412f22
Issue-ID: POLICY-96
Signed-off-by: Jorge Hernandez <jh1730@att.com>
feature-eelf/pom.xml
feature-healthcheck/pom.xml
policy-core/pom.xml
policy-endpoints/pom.xml
policy-management/pom.xml
policy-management/src/main/server-gen/bin/features
policy-utils/pom.xml
pom.xml

index a18b289..17a9de9 100644 (file)
@@ -83,7 +83,6 @@
                                                        <addParentPoms>false</addParentPoms>
                                                        <copyPom>false</copyPom>
                                                        <includeScope>runtime</includeScope>
-                                                       <excludeScope>provided</excludeScope>
                                                        <excludeTransitive>true</excludeTransitive>
                                                </configuration>
                                        </execution>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
-                       <version>4.12</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>
index 3355a2a..32aa4d1 100644 (file)
@@ -83,7 +83,6 @@
               <addParentPoms>false</addParentPoms>
               <copyPom>false</copyPom>
                          <includeScope>runtime</includeScope>
-                         <excludeScope>provided</excludeScope>
                          <excludeTransitive>true</excludeTransitive>
             </configuration>
           </execution>
index 902c38c..8fdfaa3 100644 (file)
@@ -61,7 +61,6 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>4.11</version>
       <scope>test</scope>
     </dependency>
   </dependencies>  
index b34b6d3..020d3c1 100644 (file)
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
-                       <version>4.12</version>
                        <scope>test</scope>
                </dependency>
 
index 4e375d5..e319660 100644 (file)
@@ -86,7 +86,7 @@
                                                        <addParentPoms>false</addParentPoms>
                                                        <copyPom>false</copyPom>
                                                        <excludeGroupIds>javax.inject</excludeGroupIds>
-                                                       <excludeScope>provided</excludeScope>
+                                                       <includeScope>runtime</includeScope>
                                                </configuration>
                                        </execution>
                                </executions>
                <version>4.1</version>
        </dependency>
        
-       <!-- This entry is necessary to support import "org.apache.commons.lang3.time.DateUtils" 
-                reference in StandbyStateManagementTest.java -->
-       <dependency>
-               <groupId>org.apache.commons</groupId>
-               <artifactId>commons-lang3</artifactId>
-               <version>3.4</version>
-       </dependency>
-       
        <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
        </dependency>
 
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.11</version>
-      <scope>test</scope>
-    </dependency>
-
+       <dependency>
+               <groupId>junit</groupId>
+               <artifactId>junit</artifactId>
+               <scope>test</scope>
+       </dependency>
+       
+       <!--
+               The following dependencies are for features and drools
+               applications usage
+        -->
+        
+       <dependency>
+               <groupId>org.eclipse.persistence</groupId>
+               <artifactId>eclipselink</artifactId>
+       </dependency>
+       
+       <dependency>
+           <groupId>org.mariadb.jdbc</groupId>
+           <artifactId>mariadb-java-client</artifactId>
+       </dependency>
+        
   </dependencies>
 
 </project>
index 057abeb..80a1b27 100644 (file)
@@ -301,7 +301,7 @@ function enableDepAnalysis ()
 
                multiVersionJars=$(ls "${LIB}"/"${depJarName%%-[0-9]*.jar}"-*.jar 2> /dev/null)
                if [[ -n "${multiVersionJars}" ]]; then
-                       echo "warning: other version of library ${depJarName} present: ${multiVersionJars}"
+                       echo "error: other version of library ${depJarName} present: ${multiVersionJars}"
                        return 2
                fi
        done
index 309839d..7481f42 100644 (file)
@@ -40,7 +40,6 @@
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
-                       <version>4.11</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>
diff --git a/pom.xml b/pom.xml
index 08c27c3..81d41c3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <http.client.version>4.5</http.client.version>
                <http.core.version>4.4.4</http.core.version>
                <logback.version>1.2.3</logback.version>
+               <junit.version>4.12</junit.version>
+               <eclipselink.version>2.6.4</eclipselink.version>
+               <mariadb.jdbc.version>2.1.0</mariadb.jdbc.version>
+               
                <sonar.plugin.version>3.2</sonar.plugin.version>
                <jacoco.plugin.version>0.7.9</jacoco.plugin.version>
   
                                <artifactId>logback-classic</artifactId>
                                <version>${logback.version}</version>
                        </dependency>
+                       <dependency>
+                               <groupId>junit</groupId>
+                               <artifactId>junit</artifactId>
+                               <version>${junit.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.persistence</groupId>
+                               <artifactId>eclipselink</artifactId>
+                               <version>${eclipselink.version}</version>
+                       </dependency>
+                       <dependency>
+                           <groupId>org.mariadb.jdbc</groupId>
+                           <artifactId>mariadb-java-client</artifactId>
+                           <version>${mariadb.jdbc.version}</version>
+                       </dependency>
                </dependencies>
        </dependencyManagement>