[java-parent-project-v3] 02/02: JPAR-73 - Make Cobertura report Java 7 only.
Tom Zeller
tzeller at dragonacea.biz
Tue May 31 19:00:06 EDT 2016
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-parent-project-v3.
commit a989ba3e464695c83aac2201bdd680e18318a311
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue May 31 17:45:28 2016 -0500
JPAR-73 - Make Cobertura report Java 7 only.
Move the cobertura-maven-plugin to a profile activated by Java 7.
---
pom.xml | 72 +++++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 41 insertions(+), 31 deletions(-)
diff --git a/pom.xml b/pom.xml
index badbdc0..fc7f06e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -650,37 +650,6 @@
<configLocation>${checkstyle.configLocation}</configLocation>
</configuration>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <!--
- Upgrading to 2.6 will cause the 'site' target to fail for java-support, and
- probably other projects, due to clashing dependencies on versions of
- xerces and xalan. For now, just hold at a version that works for us.
- -->
- <version>2.5.2</version>
- <configuration>
- <aggregate>true</aggregate>
- <quiet>true</quiet>
- <omitGplFiles>true</omitGplFiles>
- <instrumentation>
- <excludes>
- <exclude>**/*Exception.class</exclude>
- <!-- Exclude directive doesn't support \d so lets just assume no class will have more than 9
- anonymous inner classes -->
- <exclude>**/*$1.class</exclude>
- <exclude>**/*$2.class</exclude>
- <exclude>**/*$3.class</exclude>
- <exclude>**/*$4.class</exclude>
- <exclude>**/*$5.class</exclude>
- <exclude>**/*$6.class</exclude>
- <exclude>**/*$7.class</exclude>
- <exclude>**/*$8.class</exclude>
- <exclude>**/*$9.class</exclude>
- </excludes>
- </instrumentation>
- </configuration>
- </plugin>
<!-- 2013-04-10 tz Disabled JavaNCSS plugin because it does not support Java 7 syntax.
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -959,6 +928,47 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>jdk7-cobertura</id>
+ <activation>
+ <jdk>1.7</jdk>
+ </activation>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <!--
+ Upgrading to 2.6 will cause the 'site' target to fail for java-support, and
+ probably other projects, due to clashing dependencies on versions of
+ xerces and xalan. For now, just hold at a version that works for us.
+ -->
+ <version>2.5.2</version>
+ <configuration>
+ <aggregate>true</aggregate>
+ <quiet>true</quiet>
+ <omitGplFiles>true</omitGplFiles>
+ <instrumentation>
+ <excludes>
+ <exclude>**/*Exception.class</exclude>
+ <!-- Exclude directive doesn't support \d so lets just assume no class will have more than 9
+ anonymous inner classes -->
+ <exclude>**/*$1.class</exclude>
+ <exclude>**/*$2.class</exclude>
+ <exclude>**/*$3.class</exclude>
+ <exclude>**/*$4.class</exclude>
+ <exclude>**/*$5.class</exclude>
+ <exclude>**/*$6.class</exclude>
+ <exclude>**/*$7.class</exclude>
+ <exclude>**/*$8.class</exclude>
+ <exclude>**/*$9.class</exclude>
+ </excludes>
+ </instrumentation>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+ </profile>
</profiles>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list