java migration 8->11 47/112347/6
authorpriyanka.akhade <priyanka.akhade@huawei.com>
Wed, 9 Sep 2020 05:55:32 +0000 (11:25 +0530)
committerpriyanka.akhade <priyanka.akhade@huawei.com>
Wed, 9 Sep 2020 09:36:50 +0000 (15:06 +0530)
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com>
Issue-ID: CLI-288
Change-Id: I418f30e46acc99cb4802455e12212f123179eeb0

framework/pom.xml
grpc/pom.xml
main/pom.xml
pom.xml
profiles/command/pom.xml
profiles/http/pom.xml
profiles/pom.xml
profiles/snmp/pom.xml
validate/sample-mock-generator/pom.xml
validate/sample-yaml-generator/pom.xml
validate/validation/pom.xml

index f57bb88..68843ad 100644 (file)
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>${jmockit.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <version>1.19</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <version>2.3.0</version>
+        </dependency>
     </dependencies>
     <build>
         <plugins>
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.22.0</version>
+                <configuration>
+                    <argLine>
+                        -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
+                    </argLine>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>
index 91d5d62..af81fe9 100644 (file)
       <artifactId>proto-google-common-protos</artifactId>
       <version>0.1.9</version>
     </dependency>
+    <dependency>
+      <groupId>javax.annotation</groupId>
+      <artifactId>javax.annotation-api</artifactId>
+      <version>1.3.2</version>
+    </dependency>
   </dependencies>
   <build>
     <extensions>
index 9641f94..2361089 100644 (file)
@@ -65,7 +65,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>${jmockit.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
               </execution>
             </executions>
           </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.22.0</version>
+                <configuration>
+                    <argLine>
+                        -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
+                    </argLine>
+                </configuration>
+            </plugin>
         </plugins>
   </build>
 
diff --git a/pom.xml b/pom.xml
index 0ac3d4e..2f5bdde 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,7 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <package.name>cli</package.name>
         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+        <jmockit.version>1.43</jmockit.version>
     </properties>
 
   <modules>
@@ -59,6 +60,7 @@
             <plugin>
              <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.22.0</version>
                <configuration>
                  <systemPropertyVariables>
                     <ONAP_CLI_HOME>.</ONAP_CLI_HOME>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.1</version>
+                <version>3.8.1</version>
                 <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
+                    <release>11</release>
                 </configuration>
             </plugin>
             <plugin>
index ddd3279..2b56c54 100644 (file)
@@ -48,7 +48,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 3dee45c..d4788aa 100644 (file)
@@ -126,7 +126,7 @@ Excluded commons-codec vulnerable version and added invulnerable version
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 39176e2..6289357 100644 (file)
                       </execution>
                     </executions>
                   </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <version>2.22.0</version>
+                    <configuration>
+                        <argLine>
+                            -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
+                        </argLine>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
     </build>
index 43e5ff5..577d5dd 100644 (file)
@@ -70,7 +70,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 404ddef..76546ef 100644 (file)
@@ -50,7 +50,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 89ef1b4..2dcf57f 100644 (file)
@@ -41,7 +41,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>
index 5c85481..59dbffb 100644 (file)
@@ -50,7 +50,7 @@
         <dependency>
             <groupId>org.jmockit</groupId>
             <artifactId>jmockit</artifactId>
-            <version>1.19</version>
+            <version>1.43</version>
             <scope>test</scope>
         </dependency>
         <dependency>