add soanr code analasys TELSDN-549: #close 94/2894/2
authorDavid Goldberg <david.goldberg@contextream.com>
Wed, 20 Nov 2013 09:48:17 +0000 (11:48 +0200)
committerDavid Goldberg <david.goldberg@contextream.com>
Wed, 20 Nov 2013 11:00:10 +0000 (13:00 +0200)
Signed-off-by: David Goldberg <david.goldberg@contextream.com>
Change-Id: I304566846f6dd646aa5dcf43e501536176c2c3c9
Signed-off-by: David Goldberg <david.goldberg@contextream.com>
commons/parent/pom.xml
mappingservice/api/pom.xml
mappingservice/implementation/pom.xml
mappingservice/northbound/pom.xml
mappingservice/southbound/pom.xml

index 9c26681f153542752696a73b052d736dc8bb2e09..69ebfbb17dd462daab2766466f52a4cae914d4d9 100644 (file)
@@ -12,6 +12,8 @@
                <connection>scm:git:https://git.opendaylight.org/gerrit/p/lispflowmapping.git</connection>
        </scm>
        <properties>
+       <jacoco.version>0.5.3.201107060350</jacoco.version>
+    <enforcer.version>1.3.1</enforcer.version>
                <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <projectinfo>2.6</projectinfo>
                <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
                <yang.version>0.5.9-SNAPSHOT</yang.version>
                <yang.codegen.version>0.6.0-SNAPSHOT</yang.codegen.version>
+               <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>
+               <forwardingrulesmanager.version>0.5.0-SNAPSHOT</forwardingrulesmanager.version>
+               <statisticsmanager.version>0.5.0-SNAPSHOT</statisticsmanager.version>
+               <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
+               <java.version.source>1.7</java.version.source>
+               <java.version.target>1.7</java.version.target>
        </properties>
 
        <repositories>
index 4c83ecb2de94f4552492285118d86fd21dcce1ca..b3c443ef7f830d5dd28559f6c68436447047c819 100644 (file)
        <artifactId>mappingservice.api</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <packaging>bundle</packaging>
+       <properties>
+               <!-- 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>
+       </properties>
        <build>
+               <pluginManagement>
+                       <plugins>
+                               <plugin>
+                                       <groupId>org.jacoco</groupId>
+                                       <artifactId>jacoco-maven-plugin</artifactId>
+                                       <version>${jacoco.version}</version>
+                               </plugin>
+                       </plugins>
+               </pluginManagement>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                                        org.opendaylight.lispflowmapping.type.sbplugin
                                                </Export-Package>
                                                <Import-Package>
-                                                       org.opendaylight.controller.sal.binding.api,
+                                                       org.opendaylight.controller.sal.binding.api,
                                                        org.opendaylight.yangtools.yang.binding,
-                                                        javax.xml.bind, 
-                                                        javax.xml.bind.annotation, 
-                                                        org.slf4j,
-                                                        org.opendaylight.yangtools.yang.common
+                                                       javax.xml.bind,
+                                                       javax.xml.bind.annotation,
+                                                       org.slf4j,
+                                                       org.opendaylight.yangtools.yang.common
                                                </Import-Package>
                                                <Bundle-Activator>
                                                </Bundle-Activator>
                                        </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>
        <dependencies>
index 06fea6225ba0842522f18cbdfeab536554e9e23b..f26941ed5bc5b37b640aabd3a36c19170d2da920 100644 (file)
        <artifactId>mappingservice.implementation</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <packaging>bundle</packaging>
+       <properties>
+               <!-- 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>
+       </properties>
        <build>
+       <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.jacoco</groupId>
+          <artifactId>jacoco-maven-plugin</artifactId>
+          <version>${jacoco.version}</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                        </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>
        <dependencies>
index 94cdc1d785363a7bace88fe894c45bfc71fe215c..906556471c04be121a8685eebcc431010531e34a 100644 (file)
   <artifactId>mappingservice.northbound</artifactId>
   <version>0.1.0-SNAPSHOT</version>
   <packaging>bundle</packaging>
+  <properties>
+               <!-- 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>
+       </properties>
   <build>
+  <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.jacoco</groupId>
+          <artifactId>jacoco-maven-plugin</artifactId>
+          <version>${jacoco.version}</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
         <groupId>org.codehaus.enunciate</groupId>
           <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
         </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>
   <dependencies>
index 9708277f7a045fc50ae22753af7fc4683e056274..8c986f10f4f267af71b03bff688d5904e281c9c7 100644 (file)
        </parent>
        <artifactId>mappingservice.southbound</artifactId>
        <packaging>bundle</packaging>
+       <properties>
+               <!-- 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>
+       </properties>
        <build>
+       <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.jacoco</groupId>
+          <artifactId>jacoco-maven-plugin</artifactId>
+          <version>${jacoco.version}</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                        </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>
        <dependencies>