Fix FileNotFound jacoco.exec in sal poms and remove duplicate jacoco 25/2225/3
authorAlissa Bonas <abonas@redhat.com>
Mon, 28 Oct 2013 16:41:29 +0000 (18:41 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 29 Oct 2013 04:13:38 +0000 (04:13 +0000)
setting from pom.

The parent module should not have the jacoco plugin in plugins section, because it causes all the modules, even those without tests to inherit it.
Removed it from parent pom (kept it only in plugins management section)and added it to relevant poms of modules that have tests.

Change-Id: I4d33da1e490a7260d6f7809496dd67d10a45aca9
Signed-off-by: Alissa Bonas <abonas@redhat.com>
opendaylight/md-sal/pom.xml
opendaylight/md-sal/sal-binding-broker/pom.xml
opendaylight/md-sal/sal-binding-it/pom.xml
opendaylight/md-sal/sal-compability/pom.xml
opendaylight/md-sal/samples/toaster-it/pom.xml

index 0b52f3b57158082d501bf54c858c227d578576ab..73b69111f6dac754149ca1371ecd61e6fab49ffb 100644 (file)
         <jacoco.version>0.5.3.201107060350</jacoco.version>
         <!-- Sonar properties using jacoco to retrieve integration test results -->
         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
-        <!-- Sonar properties using jacoco to retrieve integration test results -->
         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
         <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
         <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
         <sonar.branch>${user.name}-private-view</sonar.branch>
-        <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
         <sonar.language>java</sonar.language>
     </properties>
 
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.jacoco</groupId>
-                <artifactId>jacoco-maven-plugin</artifactId>
-                <configuration>
-                  <includes>org.opendaylight.controller.*</includes>
-                </configuration>
-                <executions>
-                  <execution>
-                    <id>pre-test</id>
-                    <goals>
-                      <goal>prepare-agent</goal>
-                    </goals>
-                  </execution>
-                  <execution>
-                    <id>post-test</id>
-                    <phase>test</phase>
-                    <goals>
-                      <goal>report</goal>
-                    </goals>
-                  </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
     <reporting>
index 0d86eca440cd4fcafb6c3eea8ca9f2689c6a8cb7..54b1eb6c6695068ded33e1e7026741cdadd4dbde 100644 (file)
             <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
             </plugin>
+            <plugin>
+                   <groupId>org.jacoco</groupId>
+                   <artifactId>jacoco-maven-plugin</artifactId>
+                   <configuration>
+                     <includes>org.opendaylight.controller.*</includes>
+                   </configuration>
+                   <executions>
+                     <execution>
+                       <id>pre-test</id>
+                       <goals>
+                         <goal>prepare-agent</goal>
+                       </goals>
+                     </execution>
+                     <execution>
+                       <id>post-test</id>
+                       <phase>test</phase>
+                       <goals>
+                         <goal>report</goal>
+                       </goals>
+                     </execution>
+                   </executions>
+               </plugin>
         </plugins>
     </build>
 
index 20518bdff7e5cbc9fa5fa7f83691dd569b0dca6c..5f98deb73b148d96a30778297b7d56a5a00aceaa 100644 (file)
           </execution>
         </executions>
       </plugin>
+      <plugin>
+           <groupId>org.jacoco</groupId>
+           <artifactId>jacoco-maven-plugin</artifactId>
+           <configuration>
+             <includes>org.opendaylight.controller.*</includes>
+           </configuration>
+           <executions>
+             <execution>
+               <id>pre-test</id>
+               <goals>
+                 <goal>prepare-agent</goal>
+               </goals>
+             </execution>
+             <execution>
+               <id>post-test</id>
+               <phase>test</phase>
+               <goals>
+                 <goal>report</goal>
+               </goals>
+             </execution>
+           </executions>
+     </plugin>
     </plugins>
     <pluginManagement>
       <plugins>
index a66b82e01ab7ab713caf7d1c93d871665ac0fefb..6d992de015d16ad239a9712d47a968df0883e57a 100644 (file)
           </instructions>
         </configuration>
       </plugin>
+      <plugin>
+               <groupId>org.jacoco</groupId>
+               <artifactId>jacoco-maven-plugin</artifactId>
+               <configuration>
+                 <includes>org.opendaylight.controller.*</includes>
+               </configuration>
+               <executions>
+                 <execution>
+                   <id>pre-test</id>
+                   <goals>
+                     <goal>prepare-agent</goal>
+                   </goals>
+                 </execution>
+                 <execution>
+                   <id>post-test</id>
+                   <phase>test</phase>
+                   <goals>
+                     <goal>report</goal>
+                   </goals>
+                 </execution>
+               </executions>
+      </plugin>
     </plugins>
   </build>
 
index 1c0fb14e2ba2d04a73a4ec06a306457d082fa803..f0e3c1a1addb1c85294ea8bb09708b5397f2faa5 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                   <groupId>org.jacoco</groupId>
+                   <artifactId>jacoco-maven-plugin</artifactId>
+                   <configuration>
+                     <includes>org.opendaylight.controller.*</includes>
+                   </configuration>
+                   <executions>
+                     <execution>
+                       <id>pre-test</id>
+                       <goals>
+                         <goal>prepare-agent</goal>
+                       </goals>
+                     </execution>
+                     <execution>
+                       <id>post-test</id>
+                       <phase>test</phase>
+                       <goals>
+                         <goal>report</goal>
+                       </goals>
+                     </execution>
+                   </executions>
+               </plugin>
         </plugins>
         <pluginManagement>
             <plugins>