hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1332829 - /hbase/trunk/pom.xml
Date Tue, 01 May 2012 21:08:12 GMT
Author: stack
Date: Tue May  1 21:08:11 2012
New Revision: 1332829

URL: http://svn.apache.org/viewvc?rev=1332829&view=rev
Log:
HBASE-5888 Clover profile in build

Modified:
    hbase/trunk/pom.xml

Modified: hbase/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=1332829&r1=1332828&r2=1332829&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Tue May  1 21:08:11 2012
@@ -553,7 +553,11 @@
             </excludes>
           </configuration>
 	</plugin>
-
+        <plugin>
+          <groupId>com.atlassian.maven.plugins</groupId>
+          <artifactId>maven-clover2-plugin</artifactId>
+          <version>${clover.version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
 
@@ -1027,6 +1031,7 @@
     <maven.site.version>3.0</maven.site.version>
     <maven.javadoc.version>2.8.1</maven.javadoc.version>
     <maven.findbugs.version>2.4.0</maven.findbugs.version>
+    <clover.version>2.6.3</clover.version>
 
     <package.prefix>/usr</package.prefix>
     <package.conf.dir>/etc/hbase</package.conf.dir>
@@ -2017,6 +2022,58 @@
       </build>
     </profile>
 
+    <!-- Profile for running clover. You need to have a clover license under ~/.clover.license
for ${clover.version}
+         or you can provide the license with -Dmaven.clover.licenseLocation=/path/to/license.
Committers can find
+         the license under https://svn.apache.org/repos/private/committers/donated-licenses/clover/
+         Note that clover 2.6.3 does not run with maven 3, so you have to use maven2. The
report will be generated
+         under target/site/clover/index.html when you run
+         MAVEN_OPTS=-Xmx2048m mvn clean test -Pclover site -->
+    <profile>
+      <id>clover</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+        <property>
+          <name>clover</name>
+        </property>
+      </activation>
+      <properties>
+         <maven.clover.licenseLocation>${user.home}/.clover.license</maven.clover.licenseLocation>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>com.atlassian.maven.plugins</groupId>
+            <artifactId>maven-clover2-plugin</artifactId>
+            <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>site</phase>
+                <goals>
+                  <goal>clover</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
 
     <!-- profiles for the tests
          See as well the properties of the project for the values



Mime
View raw message