rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlu...@apache.org
Subject svn commit: r1164244 - /incubator/rave/trunk/pom.xml
Date Thu, 01 Sep 2011 20:16:03 GMT
Author: carlucci
Date: Thu Sep  1 20:16:03 2011
New Revision: 1164244

URL: http://svn.apache.org/viewvc?rev=1164244&view=rev
Log:
RAVE-246: added and configured the cobertura-maven-plugin in the rave-project pom.xml

Modified:
    incubator/rave/trunk/pom.xml

Modified: incubator/rave/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/pom.xml?rev=1164244&r1=1164243&r2=1164244&view=diff
==============================================================================
--- incubator/rave/trunk/pom.xml (original)
+++ incubator/rave/trunk/pom.xml Thu Sep  1 20:16:03 2011
@@ -64,6 +64,7 @@
         <jersey-server.version>1.6</jersey-server.version>
         <jersey-spring.version>1.0</jersey-spring.version>
         <guice.version>3.0</guice.version>
+        <cobertura.version>2.5.1</cobertura.version>
 
         <!-- Force maven-filesync-plugin rewrite the Eclipse FileSync plugin configuration
with
             $mvn filesync:generate -Dmaven.filesync.override=true -->
@@ -74,24 +75,24 @@
         <javaagent />
     </properties>
 
-  <repositories>
-    <repository>
-      <id>apache.snapshots</id>
-      <name>Apache Snapshot Repository</name>
-      <url>http://repository.apache.org/snapshots</url>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-    </repository>
-  </repositories>
+    <repositories>
+        <repository>
+            <id>apache.snapshots</id>
+            <name>Apache Snapshot Repository</name>
+            <url>http://repository.apache.org/snapshots</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
+    </repositories>
 
     <!-- Global management of all dependencies -->
     <dependencyManagement>
         <dependencies>
-           <dependency>
+            <dependency>
                 <groupId>org.apache.rave</groupId>
                 <artifactId>rave-commons</artifactId>
-               <version>${project.version}</version>
+                <version>${project.version}</version>
             </dependency>
             <dependency>
                 <groupId>org.apache.shindig</groupId>
@@ -105,24 +106,24 @@
                 <version>${apache.shindig.version}</version>
             </dependency>
             <dependency>
-              <groupId>org.apache.shindig</groupId>
-              <artifactId>shindig-social-api</artifactId>
-              <type>test-jar</type>
-              <scope>test</scope>
-              <version>${apache.shindig.version}</version>
-            </dependency>
-            <dependency>
-              <groupId>org.apache.shindig</groupId>
-              <artifactId>shindig-common</artifactId>
-              <type>test-jar</type>
-              <scope>test</scope>
-              <version>${apache.shindig.version}</version>
-            </dependency>
-            <dependency>
-              <groupId>org.apache.shindig</groupId>
-              <artifactId>shindig-gadgets</artifactId>
-              <scope>test</scope>
-              <version>${apache.shindig.version}</version>
+                <groupId>org.apache.shindig</groupId>
+                <artifactId>shindig-social-api</artifactId>
+                <type>test-jar</type>
+                <scope>test</scope>
+                <version>${apache.shindig.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.shindig</groupId>
+                <artifactId>shindig-common</artifactId>
+                <type>test-jar</type>
+                <scope>test</scope>
+                <version>${apache.shindig.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.shindig</groupId>
+                <artifactId>shindig-gadgets</artifactId>
+                <scope>test</scope>
+                <version>${apache.shindig.version}</version>
             </dependency>
             <dependency>
                 <groupId>org.springframework</groupId>
@@ -160,19 +161,19 @@
                 <version>${org.springframework.version}</version>
             </dependency>
             <dependency>
-              <groupId>org.springframework</groupId>
-              <artifactId>spring-core</artifactId>
-              <version>${org.springframework.version}</version>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-core</artifactId>
+                <version>${org.springframework.version}</version>
             </dependency>
             <dependency>
-              <groupId>com.google.inject.extensions</groupId>
-              <artifactId>guice-persist</artifactId>
-              <version>${guice.version}</version>
+                <groupId>com.google.inject.extensions</groupId>
+                <artifactId>guice-persist</artifactId>
+                <version>${guice.version}</version>
             </dependency>
             <dependency>
-              <groupId>org.glassfish.web</groupId>
-              <artifactId>jstl-impl</artifactId>
-              <version>${jstl.version}</version>
+                <groupId>org.glassfish.web</groupId>
+                <artifactId>jstl-impl</artifactId>
+                <version>${jstl.version}</version>
             </dependency>
             <dependency>
                 <groupId>org.apache.openjpa</groupId>
@@ -190,26 +191,26 @@
                 <artifactId>jersey-spring</artifactId>
                 <version>${jersey-spring.version}</version>
                 <exclusions>
-                  <exclusion>
-                    <groupId>org.springframework</groupId>
-                    <artifactId>spring</artifactId>
-                  </exclusion>
-                  <exclusion>
-                    <groupId>org.springframework</groupId>
-                    <artifactId>spring-core</artifactId>
-                  </exclusion>
-                  <exclusion>
-                    <groupId>org.springframework</groupId>
-                    <artifactId>spring-web</artifactId>
-                  </exclusion>
-                  <exclusion>
-                    <groupId>org.springframework</groupId>
-                    <artifactId>spring-beans</artifactId>
-                  </exclusion>
-                  <exclusion>
-                    <groupId>org.springframework</groupId>
-                    <artifactId>spring-context</artifactId>
-                  </exclusion>
+                    <exclusion>
+                        <groupId>org.springframework</groupId>
+                        <artifactId>spring</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>org.springframework</groupId>
+                        <artifactId>spring-core</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>org.springframework</groupId>
+                        <artifactId>spring-web</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>org.springframework</groupId>
+                        <artifactId>spring-beans</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>org.springframework</groupId>
+                        <artifactId>spring-context</artifactId>
+                    </exclusion>
                 </exclusions>
             </dependency>
 
@@ -279,22 +280,22 @@
 
             <!-- Test -->
             <dependency>
-               <groupId>junit</groupId>
-               <artifactId>junit</artifactId>
-               <version>${junit.version}</version>
-               <scope>test</scope>
-            </dependency>
-            <dependency>
-               <groupId>org.easymock</groupId>
-               <artifactId>easymock</artifactId>
-               <version>${easymock.version}</version>
-               <scope>test</scope>
-            </dependency>
-            <dependency>
-               <groupId>org.springframework</groupId>
-               <artifactId>spring-test</artifactId>
-               <version>${org.springframework.version}</version>
-               <scope>test</scope>
+                <groupId>junit</groupId>
+                <artifactId>junit</artifactId>
+                <version>${junit.version}</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.easymock</groupId>
+                <artifactId>easymock</artifactId>
+                <version>${easymock.version}</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-test</artifactId>
+                <version>${org.springframework.version}</version>
+                <scope>test</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>
@@ -309,16 +310,16 @@
             <scope>provided</scope>
         </dependency>
         <dependency>
-          <groupId>javax.servlet.jsp</groupId>
-          <artifactId>jsp-api</artifactId>
-          <version>${jsp-api.version}</version>
-          <scope>provided</scope>
+            <groupId>javax.servlet.jsp</groupId>
+            <artifactId>jsp-api</artifactId>
+            <version>${jsp-api.version}</version>
+            <scope>provided</scope>
         </dependency>
         <dependency>
-          <groupId>javax.el</groupId>
-          <artifactId>el-api</artifactId>
-          <version>${el-api.version}</version>
-          <scope>provided</scope>
+            <groupId>javax.el</groupId>
+            <artifactId>el-api</artifactId>
+            <version>${el-api.version}</version>
+            <scope>provided</scope>
         </dependency>
                 
         <!-- Exclude commons-logging by adding it as a provided dependency -->
@@ -330,71 +331,89 @@
         </dependency>
     </dependencies>
 
-  <build>
-    <defaultGoal>install</defaultGoal>
-
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-compiler-plugin</artifactId>
-          <version>2.3.2</version>
-          <configuration>
-            <source>1.6</source>
-            <target>1.6</target>
-          </configuration>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-war-plugin</artifactId>
-          <version>2.1.1</version>
-        </plugin>
-        <plugin>
-          <groupId>com.googlecode.mavenfilesync</groupId>
-          <artifactId>maven-filesync-plugin</artifactId>
-          <version>1.0.0</version>
-          <configuration>
-            <override>${maven.filesync.override}</override>
-          </configuration>
-          <executions>
-            <execution>
-              <goals>
-                <goal>generate</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-
-  </build>
+    <build>
+        <defaultGoal>install</defaultGoal>
 
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <version>2.3.2</version>
+                    <configuration>
+                        <source>1.6</source>
+                        <target>1.6</target>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-war-plugin</artifactId>
+                    <version>2.1.1</version>
+                </plugin>
+                <plugin>
+                    <groupId>com.googlecode.mavenfilesync</groupId>
+                    <artifactId>maven-filesync-plugin</artifactId>
+                    <version>1.0.0</version>
+                    <configuration>
+                        <override>${maven.filesync.override}</override>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <goals>
+                                <goal>generate</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>                           
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>cobertura-maven-plugin</artifactId>
+                    <version>${cobertura.version}</version>                 
                                                  
+                </plugin>                     
+            </plugins>
+        </pluginManagement>
+
+    </build>  
+    <reporting>
+        <plugins>
+            <plugin>        
+                <!-- use mvn cobertura:cobertura to generate coverage reports -->
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>cobertura-maven-plugin</artifactId>
+                <version>${cobertura.version}</version>          
+                <configuration>
+                    <formats>
+                        <format>html</format>
+                        <format>xml</format>
+                    </formats>
+                </configuration>
+            </plugin>
+        </plugins>
+    </reporting>  
     <modules>
         <module>rave-commons</module>
         <module>rave-shindig</module>
         <module>rave-portal</module>
     </modules>
-
     <profiles>
-      <profile>
-        <id>dist</id>
-        <build>
-          <defaultGoal>install</defaultGoal>
-          <plugins>
-            <plugin>
-              <artifactId>maven-clean-plugin</artifactId>
-              <executions>
-                <execution>
-                  <phase>validate</phase>
-                  <goals>
-                    <goal>clean</goal>
-                  </goals>
-                </execution>
-              </executions>
-            </plugin>
-          </plugins>
-        </build>
-      </profile>
-    </profiles>
-    
+        <profile>
+            <id>dist</id>
+            <build>
+                <defaultGoal>install</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-clean-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>clean</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>    
 </project>



Mime
View raw message