diff options
author | Roberto E. Escobar | 2011-12-06 02:09:29 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2011-12-06 02:09:29 +0000 |
commit | 03d88263d4d30419899803c648d2fdaff59fa811 (patch) | |
tree | 61fed2e6db9f2f7ee4f25cf4edad751c0a9ec522 /plugins/org.eclipse.osee.x.core.parent | |
parent | 9db31c8a3b87f7f26c4bac3cd72315f53c16c30b (diff) | |
download | org.eclipse.osee-03d88263d4d30419899803c648d2fdaff59fa811.tar.gz org.eclipse.osee-03d88263d4d30419899803c648d2fdaff59fa811.tar.xz org.eclipse.osee-03d88263d4d30419899803c648d2fdaff59fa811.zip |
feature: Enable maven code coverage and static analysis checks
Diffstat (limited to 'plugins/org.eclipse.osee.x.core.parent')
-rw-r--r-- | plugins/org.eclipse.osee.x.core.parent/pom.xml | 281 |
1 files changed, 190 insertions, 91 deletions
diff --git a/plugins/org.eclipse.osee.x.core.parent/pom.xml b/plugins/org.eclipse.osee.x.core.parent/pom.xml index 25264236795..edcaeaa52a1 100644 --- a/plugins/org.eclipse.osee.x.core.parent/pom.xml +++ b/plugins/org.eclipse.osee.x.core.parent/pom.xml @@ -39,7 +39,7 @@ <module>../../plugins/org.eclipse.osee.display.mvp</module> <module>../../plugins/org.eclipse.osee.display.mvp.test</module> - + <module>../../plugins/org.eclipse.osee.rest.admin</module> <module>../../features/org.eclipse.osee.x.core.external.feature</module> @@ -50,9 +50,17 @@ </modules> <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <tycho-version>0.12.0</tycho-version> <maven-antrun-version>1.6</maven-antrun-version> <ant-contrib-version>1.0b3</ant-contrib-version> + <jacoco-version>0.5.3.201107060350</jacoco-version> + <findbugs-version>2.3.2</findbugs-version> + <pmd-version>2.5</pmd-version> + <checkstyle-version>2.6</checkstyle-version> + <javadoc-version>2.8</javadoc-version> + <build-alias>-DEV</build-alias> <platform-version-name>indigo</platform-version-name> @@ -247,87 +255,11 @@ </dependency> </dependencies> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <findbugsXmlOutput>true</findbugsXmlOutput> - <failOnError>false</failOnError> - </configuration> - <executions> - <execution> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-pmd-plugin</artifactId> - <version>2.5</version> - <configuration> - <sourceEncoding>utf-8</sourceEncoding> - <minimumTokens>100</minimumTokens> - <targetJdk>1.6</targetJdk> - <format>xml</format> - <failOnViolation>false</failOnViolation> - </configuration> - <executions> - <execution> - <goals> - <goal>cpd-check</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.8</version> - <configuration> - <debug>true</debug> - <maxmemory>1024m</maxmemory> - <sourcepath>src</sourcepath> - <author>true</author> - <version>true</version> - <aggregate>true</aggregate> - <encoding>ISO-8859-1</encoding> - </configuration> - <executions> - <execution> - <id>aggregate</id> - <goals> - <goal>aggregate</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </pluginManagement> </build> - <reporting> - <plugins> - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-surefire</artifactId> - <version>${tycho-version}</version> - <configuration> - <aggregate>true</aggregate> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.8</version> - </plugin> - </plugins> - </reporting> - <profiles> - <profile> <id>helpGeneration</id> <activation> @@ -369,26 +301,39 @@ </profile> <profile> - <id>checkstyle</id> + <id>check-style</id> <activation> - <activeByDefault>false</activeByDefault> + <activeByDefault>true</activeByDefault> </activation> + <properties> + <checkstyle.reportPath>target/checkstyle</checkstyle.reportPath> + <checkstyle.configPath>../../plugins/org.eclipse.osee.support.config/codeStyle</checkstyle.configPath> + <checkstyle.configFile>${checkstyle.configPath}/osee_check_style.xml</checkstyle.configFile> + <checkstyle.failOnErrors>false</checkstyle.failOnErrors> + </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> - <version>2.6</version> + <version>${checkstyle-version}</version> <executions> <execution> - <id>check my sources</id> + <id>check-source-style</id> + <phase>verify</phase> <goals> <goal>checkstyle</goal> </goals> - <phase>verify</phase> <configuration> - <failOnErrors>false</failOnErrors> + <failOnErrors>${checkstyle.failOnErrors}</failOnErrors> <consoleOutput>true</consoleOutput> + <outputFileFormat>xml</outputFileFormat> + <includes>*osee*</includes> + <configLocation>${checkstyle.configFile}</configLocation> + <!-- <suppressionsLocation></suppressionsLocation> --> + <!-- <propertiesLocation></propertiesLocation> --> + <!-- <headerLocation></headerLocation> to check license info --> + <outputDirectory>${checkstyle.reportPath}</outputDirectory> </configuration> </execution> </executions> @@ -398,31 +343,185 @@ </profile> <profile> - <id>coverage</id> + <id>check-findbugs</id> <activation> - <activeByDefault>false</activeByDefault> + <activeByDefault>true</activeByDefault> </activation> - <modules> - <module>org.eclemma.runtime.equinox</module> - </modules> - </profile> - <profile> - <id>static-checks</id> + <properties> + <findbugs.reportPath>target/findbugs</findbugs.reportPath> + <findbugs.failOnErrors>false</findbugs.failOnErrors> + </properties> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> + <version>${findbugs-version}</version> + <configuration> + <xmlOutput>true</xmlOutput> + <xmlOutputDirectory>${findbugs.reportPath}</xmlOutputDirectory> + <outputDirectory>${findbugs.reportPath}</outputDirectory> + <failOnError>${findbugs.failOnErrors}</failOnError> + <includeFileFilter>*osee*</includeFileFilter> + <excludeFileFilter>*test*</excludeFileFilter> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>check-pmd</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <pmd.reportPath>target/pmd</pmd.reportPath> + <pmd.failOnErrors>false</pmd.failOnErrors> + </properties> + <build> + <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> + <version>${pmd-version}</version> + <configuration> + <sourceEncoding>utf-8</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>1.6</targetJdk> + <format>xml</format> + <failOnViolation>${pmd.failOnErrors}</failOnViolation> + <outputDirectory>${pmd.reportPath}</outputDirectory> + <targetDirectory>${pmd.reportPath}</targetDirectory> + </configuration> + <executions> + <execution> + <goals> + <goal>cpd-check</goal> + </goals> + </execution> + </executions> </plugin> </plugins> </build> </profile> <profile> + <id>sonar</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + + <sonar.jdbc.url>jdbc:postgresql://msa-linux-201.msc.az.boeing.com:5432/sonar</sonar.jdbc.url> + <sonar.jdbc.driverClassName>org.postgresql.Driver</sonar.jdbc.driverClassName> + <sonar.jdbc.username>sonar</sonar.jdbc.username> + <sonar.jdbc.password>sonar</sonar.jdbc.password> + + <sonar.host.url>http://msa-linux-201.msc.az.boeing.com:9000/sonar</sonar.host.url> + </properties> + </profile> + + <profile> + <id>code-coverage</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> + + <coverage.reportPath>../../plugins/org.eclipse.osee.x.core.parent/target/coverage</coverage.reportPath> + <sonar.jacoco.reportPath>${coverage.reportPath}/jacoco.exec</sonar.jacoco.reportPath> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${jacoco-version}</version> + <executions> + <execution> + <id>collect-coverage</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <includes>*.osee.*</includes> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> + </execution> + <!-- <execution> + <id>create-coverage-reports</id> + <phase>verify</phase> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${sonar.jacoco.reportPath}</dataFile> + <includes>*.osee.*</includes> + <outputDirectory>${coverage.reportPath}</outputDirectory> + <outputEncoding>UTF-8</outputEncoding> + </configuration> + </execution> --> + </executions> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>create-javadoc</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${javadoc-version}</version> + <configuration> + <debug>true</debug> + <maxmemory>1024m</maxmemory> + <sourcepath>src</sourcepath> + <author>true</author> + <version>true</version> + <aggregate>true</aggregate> + <encoding>ISO-8859-1</encoding> + </configuration> + <executions> + <execution> + <id>aggregate</id> + <goals> + <goal>aggregate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${javadoc-version}</version> + </plugin> + </plugins> + </reporting> + </profile> + + <profile> <id>hudson</id> <activation> <property> |