Fix security issues 57/64457/2
authorPamela Dragosh <pdragosh@research.att.com>
Tue, 4 Sep 2018 15:18:15 +0000 (11:18 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Tue, 4 Sep 2018 15:39:57 +0000 (11:39 -0400)
Guava was not fully defined correctly. In order to exclude
an older version being pulled in, the dependencyManagement
needs to come from oparent and not overriden in drools-pdp.

Issue-ID: INT-619
Change-Id: I58dfb815f02d61e47552e671540144b7b1ed3df5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
policy-core/pom.xml
pom.xml

index 18157c0..8cbef40 100644 (file)
@@ -39,7 +39,7 @@
     <dependencies>
     <!--
     Issue: 1 of 2
-    These 2 dependencies are trying to upgrade security fixes
+    These 3 dependencies are trying to upgrade security fixes
     identified. If they are removed or manipulated then please
     fix the 2nd change as noted below. 
     -->
             <groupId>com.thoughtworks.xstream</groupId>
             <artifactId>xstream</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
 
         <dependency>
             <groupId>org.kie</groupId>
                     <groupId>com.thoughtworks.xstream</groupId>
                     <artifactId>xstream</artifactId>
                 </exclusion>
+                <exclusion>
+                    <groupId>com.google.guava</groupId>
+                    <artifactId>guava</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
         <dependency>
diff --git a/pom.xml b/pom.xml
index 87af9a1..c3c4aae 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
     <dependencyManagement>
         <dependencies>
-            <dependency>
-                <groupId>com.google.guava</groupId>
-                <artifactId>guava</artifactId>
-            </dependency>
             <dependency>
                 <groupId>javax.ws.rs</groupId>
                 <artifactId>javax.ws.rs-api</artifactId>