|
@@ -25,6 +25,7 @@
|
|
|
<description>Ambari</description>
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <clover.license>${user.home}/clover.license</clover.license>
|
|
|
</properties>
|
|
|
<pluginRepositories>
|
|
|
<pluginRepository>
|
|
@@ -33,6 +34,12 @@
|
|
|
<url>http://download.java.net/maven/2/</url>
|
|
|
<layout>default</layout>
|
|
|
</pluginRepository>
|
|
|
+ <pluginRepository>
|
|
|
+ <id>maven2-repository.atlassian</id>
|
|
|
+ <name>Atlassian Maven Repository</name>
|
|
|
+ <url>https://maven.atlassian.com/repository/public</url>
|
|
|
+ <layout>default</layout>
|
|
|
+ </pluginRepository>
|
|
|
<pluginRepository>
|
|
|
<id>maven2-glassfish-repository.dev.java.net</id>
|
|
|
<name>Java.net Repository for Maven</name>
|
|
@@ -149,4 +156,54 @@
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>clover</id>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>false</activeByDefault>
|
|
|
+ <property>
|
|
|
+ <name>clover</name>
|
|
|
+ </property>
|
|
|
+ </activation>
|
|
|
+ <properties>
|
|
|
+ <maven.clover.licenseLocation>${clover.license}</maven.clover.licenseLocation>
|
|
|
+ <clover.version>3.1.11</clover.version>
|
|
|
+ </properties>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.atlassian.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-clover2-plugin</artifactId>
|
|
|
+ <version>${clover.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <includesAllSourceRoots>true</includesAllSourceRoots>
|
|
|
+ <includesTestSourceRoots>true</includesTestSourceRoots>
|
|
|
+ <targetPercentage>50%</targetPercentage>
|
|
|
+ <generateHtml>true</generateHtml>
|
|
|
+ <generateXml>true</generateXml>
|
|
|
+ <excludes>
|
|
|
+ <exclude>**/generated/**</exclude>
|
|
|
+ </excludes>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>clover-setup</id>
|
|
|
+ <phase>process-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>setup</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>clover</id>
|
|
|
+ <phase>test</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>clover</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
</project>
|