[jboss-svn-commits] JBL Code SVN: r11842 - labs/jbossbuild/jboss-parent/trunk.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon May 14 08:59:50 EDT 2007


Author: pgier
Date: 2007-05-14 08:59:50 -0400 (Mon, 14 May 2007)
New Revision: 11842

Modified:
   labs/jbossbuild/jboss-parent/trunk/pom.xml
Log:
Adding reporting to the parent.  Changing groupId jboss to org.jboss

Modified: labs/jbossbuild/jboss-parent/trunk/pom.xml
===================================================================
--- labs/jbossbuild/jboss-parent/trunk/pom.xml	2007-05-14 00:02:56 UTC (rev 11841)
+++ labs/jbossbuild/jboss-parent/trunk/pom.xml	2007-05-14 12:59:50 UTC (rev 11842)
@@ -3,19 +3,19 @@
   - A parent pom with default settings for jboss projects.
   - Each jboss project should have something similar to the following lines in their pom file.
   - <parent>
-  -   <groupId>jboss</groupId>
+  -   <groupId>org.jboss</groupId>
   -   <artifactId>jboss-parent</artifactId>
   -   <version>3</version>
   - </parent>
   -
-  - To build this project maven 2 should be installed and "mvn" should be in the system path.  From the command line
-  - run "mvn".  This will run the default build goal "install".
+  - To build this project, maven 2 should be installed and "mvn" should be in the system path.  
+  - From the command line, run "mvn install".  This will run the default build goal "install".
  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-  <groupId>jboss</groupId>
+  <groupId>org.jboss</groupId>
   <version>3-SNAPSHOT</version>
   <artifactId>jboss-parent</artifactId>
   <packaging>pom</packaging>
@@ -50,7 +50,6 @@
     <url>http://www.jboss.org</url>
   </organization>
   <build>
-    <defaultGoal>install</defaultGoal>
     <extensions>
       <extension>
 	      <groupId>org.apache.maven.wagon</groupId>
@@ -60,18 +59,25 @@
     </extensions>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>        
         <artifactId>maven-release-plugin</artifactId>
+        <version>2.0-beta-4</version>          
         <configuration>
           <!-- The tagBase property is needed during the release process so that the maven release plugin
             -  will create the release tag in the appropriate location. -->
           <tagBase>https://svn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/tags/</tagBase>
+          <!-- We don't want to use the default release profile because it creates javadoc jars for the repo.
+            -  Since we include source jars in the repo, we don't need the javadoc jars. -->
+          <useReleaseProfile>false</useReleaseProfile>
+          <!-- The release plugin activates a custom profile called "release". -->
+          <arguments>-Prelease</arguments>
         </configuration>
         <inherited>false</inherited>
       </plugin>
-      <!-- define how we want compilation to take place
-        -  here, we accept most of the defaults but say that we want the
-        -  optimization flag set, and define the source and target to be 1.5,
-        -  these setting will be inherited by child projects -->
+      <!-- Define how we want compilation to take place.
+        -  We accept most of the defaults but say that we want the
+        -  optimization, warnings, and deprecation flags on, and define the source and target to be 1.5,
+        -  these setting will be inherited by child projects, but can be overridden as needed. -->
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
@@ -111,18 +117,8 @@
             </manifestEntries>
           </archive>
         </configuration>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>        
-          <artifactId>maven-release-plugin</artifactId>
-          <version>2.0-beta-4</version>          
-          <configuration>
-            <useReleaseProfile>false</useReleaseProfile>
-            <goals>deploy</goals>
-            <arguments>-Prelease</arguments>
-          </configuration>
-        </plugin>
-      </plugins>
+      </plugin>
+    </plugins>
     <pluginManagement>
       <plugins>
         <plugin>
@@ -185,6 +181,46 @@
         </repository>
       </repositories>
     </profile>
+    <!-- Activating this profile will cause developer reports to be generated.
+      -  These are reports that do not need to go on the project site, but
+      -  may be usefule to developers. -->
+    <profile>
+      <id>dev-reports</id>
+      <reporting>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>findbugs-maven-plugin</artifactId>
+            <version>1.0-beta-1</version>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-pmd-plugin</artifactId>
+            <version>2.0</version>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-checkstyle-plugin</artifactId>
+            <version>2.1</version>
+          </plugin>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>jdepend-maven-plugin</artifactId>
+            <version>2.0-beta-1</version>
+          </plugin>         
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>javancss-maven-plugin</artifactId>
+            <version>2.0-beta-1</version>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jxr-plugin</artifactId>
+            <version>2.0</version>
+          </plugin>
+        </plugins>
+      </reporting>
+    </profile>
   </profiles>
   <repositories>
     <repository>
@@ -228,6 +264,42 @@
       </snapshots>
     </pluginRepository>
   </pluginRepositories>
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+        <version>2.0.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.2</version>
+        <configuration>
+          <links>
+            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+          </links>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-report-plugin</artifactId>      
+        <version>2.3</version>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>report-only</report>
+            </reports>
+          </reportSet>
+        </reportSets>          
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>taglist-maven-plugin</artifactId>
+        <version>2.0</version>
+      </plugin>
+    </plugins>    
+  </reporting>
   <distributionManagement>
     <repository>
       <!-- Copy the distribution jar file to a local checkout of the maven repository 
@@ -238,7 +310,7 @@
     <snapshotRepository>
       <id>snapshots.jboss.org</id>
       <name>JBoss Snapshot Repository</name>
-      <url>dav:https://snapshots.jboss.org/maven2/</url>
+      <url>dav:https://snapshots.jboss.org/maven2</url>
     </snapshotRepository>
   </distributionManagement>
 </project>
\ No newline at end of file




More information about the jboss-svn-commits mailing list