Fix mockito import in common 26/100226/2
authorJim Hahn <jrh3@att.com>
Fri, 10 Jan 2020 21:59:48 +0000 (16:59 -0500)
committerJim Hahn <jrh3@att.com>
Fri, 10 Jan 2020 22:11:58 +0000 (17:11 -0500)
ONAP-Logging was failing when using powermock-mockito2.
This change also requires a property (version.javax.bind) to be
added to the parent/integration pom.

Issue-ID: POLICY-1406
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: If8813edaf86d84cff72c0e476ebf2a36bf5dcf18

common-logging/pom.xml
utils/pom.xml

index 5e096c7..335af71 100644 (file)
             <groupId>com.att.eelf</groupId>
             <artifactId>eelf-core</artifactId>
             <version>1.0.1-oss</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.powermock</groupId>
+                    <artifactId>powermock-api-mockito</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
          <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>powermock-api-mockito2</artifactId>
             <scope>test</scope>
         </dependency>
-         <dependency>
-             <groupId>org.powermock</groupId>
-             <artifactId>powermock-api-mockito</artifactId>
-             <version>1.7.4</version>
-             <scope>test</scope>
-         </dependency>
     </dependencies>
 
     <build>
index fa46a18..ef05914 100644 (file)
     <packaging>jar</packaging>
 
     <dependencies>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <version>${version.javax.bind}</version>
+        </dependency>
         <dependency>
             <groupId>org.yaml</groupId>
             <artifactId>snakeyaml</artifactId>