add a profile for coverage (jacoco-coverage) Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/e4a7f04a Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/e4a7f04a Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/e4a7f04a
Branch: refs/heads/master Commit: e4a7f04a359979a69e36dc2f9199ea4d1a01b6ba Parents: 705fbd9 Author: Eric Barboni <[email protected]> Authored: Tue Sep 30 23:05:24 2014 +0200 Committer: Eric Barboni <[email protected]> Committed: Tue Sep 30 23:06:57 2014 +0200 ---------------------------------------------------------------------- .../archiva-rest/archiva-rest-services/pom.xml | 2 +- .../archiva-web/archiva-web-common/pom.xml | 2 +- .../archiva-web/archiva-webdav/pom.xml | 2 +- pom.xml | 39 +++++++++++++++++++- 4 files changed, 40 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/e4a7f04a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml ---------------------------------------------------------------------- diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml index 1b6bfa2..37d9c39 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml @@ -443,7 +443,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>-Xmx512m -Xms512m -server -XX:MaxPermSize=256m</argLine> + <argLine>-Xmx512m -Xms512m -server -XX:MaxPermSize=256m ${jacocoagent}</argLine> <systemPropertyVariables> <appserver.base>${project.build.directory}/appserver-base</appserver.base> <plexus.home>${project.build.directory}/appserver-base</plexus.home> http://git-wip-us.apache.org/repos/asf/archiva/blob/e4a7f04a/archiva-modules/archiva-web/archiva-web-common/pom.xml ---------------------------------------------------------------------- diff --git a/archiva-modules/archiva-web/archiva-web-common/pom.xml b/archiva-modules/archiva-web/archiva-web-common/pom.xml index 7ef97ce..755afe0 100644 --- a/archiva-modules/archiva-web/archiva-web-common/pom.xml +++ b/archiva-modules/archiva-web/archiva-web-common/pom.xml @@ -513,7 +513,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>-Xmx1024m -Xms512m -XX:MaxPermSize=256m</argLine> + <argLine>-Xmx1024m -Xms512m -XX:MaxPermSize=256m ${jacocoagent}</argLine> <systemPropertyVariables> <appserver.base>${project.build.directory}/appserver-base</appserver.base> <plexus.home>${project.build.directory}/appserver-base</plexus.home> http://git-wip-us.apache.org/repos/asf/archiva/blob/e4a7f04a/archiva-modules/archiva-web/archiva-webdav/pom.xml ---------------------------------------------------------------------- diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 1ca2e0e..39422f2 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -299,7 +299,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>${webdav.argLine}</argLine> + <argLine>${webdav.argLine} ${jacocoagent}</argLine> <systemPropertyVariables> <appserver.base>${project.build.directory}/appserver-base</appserver.base> <plexus.home>${project.build.directory}/appserver-base</plexus.home> http://git-wip-us.apache.org/repos/asf/archiva/blob/e4a7f04a/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index f61f0c1..a4fa3b7 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ <javax.jcr.version>2.0</javax.jcr.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> - + <jacocoagent></jacocoagent> <lucene.version>3.6.2</lucene.version> <jackrabbit.version>2.8.0</jackrabbit.version> @@ -1837,6 +1837,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> + <argLine>${jacocoagent}</argLine> <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile> <runOrder>alphabetical</runOrder> <systemPropertyVariables> @@ -1919,7 +1920,41 @@ <module>archiva-modules/archiva-web/archiva-webapp-test</module> </modules> </profile> - + <profile> + <id>jacoco-coverage</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.2.201409121644</version> + <executions> + <execution> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <propertyName>jacocoproperty</propertyName> + </configuration> + </execution> + <execution> + <id>report</id> + <phase>prepare-package</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <properties> + <jacocoagent>${jacocoproperty}</jacocoagent> + </properties> + </profile> </profiles> <repositories>
