Improved JaCoCo configuration 11/59811/2
authorvempo <vitaliy.emporopulo@amdocs.com>
Wed, 8 Aug 2018 12:40:46 +0000 (15:40 +0300)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Thu, 9 Aug 2018 11:35:02 +0000 (11:35 +0000)
Declared JaCoCo Maven plugin under dependencyManagement to avoid
conflicting versions.

Change-Id: I11f3b575d6b3b34733e8f4379b9ba6b4bf4ba39b
Issue-ID: SDC-1596
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
onboarding/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vnf-repository-rest-services/pom.xml
openecomp-be/pom.xml
pom.xml
services/activity-spec/pom.xml

index 0e18c2d..ea3f95d 100644 (file)
 
     <properties>
 
-        <maven.test.redirectTestOutputToFile>false</maven.test.redirectTestOutputToFile>
+        <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
         <jacoco.skip>true</jacoco.skip>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
         <!-- Maven plugin versions -->
-        <jacoco.version>0.7.9</jacoco.version>
         <mvn.assembly.version>2.1</mvn.assembly.version>
         <mvn.compiler.version>3.7.0</mvn.compiler.version>
         <mvn.clean.version>2.5</mvn.clean.version>
                 <artifactId>swagger-annotations</artifactId>
                 <version>${swagger.version}</version>
             </dependency>
+            <dependency>
+                <groupId>com.github.tomakehurst</groupId>
+                <artifactId>wiremock</artifactId>
+                <version>${wire-mock.version}</version>
+            </dependency>
             <dependency>
                 <groupId>org.testng</groupId>
                 <artifactId>testng</artifactId>
index bc11770..f5f848a 100644 (file)
@@ -88,7 +88,6 @@
         <dependency>
             <groupId>com.github.tomakehurst</groupId>
             <artifactId>wiremock</artifactId>
-            <version>2.18.0</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
index e93576a..b603499 100644 (file)
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
-                <version>${jacoco.version}</version>
                 <executions>
                     <execution>
+                        <id>default-prepare-agent</id>
                         <goals>
                             <goal>prepare-agent</goal>
                         </goals>
diff --git a/pom.xml b/pom.xml
index 5f4326e..694bdd3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <build>
         <pluginManagement>
             <plugins>
-
+                <plugin>
+                    <groupId>org.jacoco</groupId>
+                    <artifactId>jacoco-maven-plugin</artifactId>
+                    <version>0.8.1</version>
+                </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-site-plugin</artifactId>
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
-                <version>0.8.1</version>
                 <executions>
                     <execution>
                         <id>default-prepare-agent</id>
index a5c8358..2b4aa6c 100644 (file)
@@ -22,7 +22,6 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
         <mvn.surefire.version>2.19.1</mvn.surefire.version>
-        <jacoco.version>0.7.9</jacoco.version>
         <mvn.compiler.version>2.5.1</mvn.compiler.version>
         <mvn.license.version>1.10</mvn.license.version>
         <mvn.assembly.version>2.1</mvn.assembly.version>