You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by fe...@apache.org on 2011/10/09 16:25:20 UTC

svn commit: r1180624 - /james/trunk/sandbox/felixk/mailbox/pom.xml

Author: felixk
Date: Sun Oct  9 14:25:20 2011
New Revision: 1180624

URL: http://svn.apache.org/viewvc?rev=1180624&view=rev
Log:
Adapt for demoing james-parent.pom

Modified:
    james/trunk/sandbox/felixk/mailbox/pom.xml

Modified: james/trunk/sandbox/felixk/mailbox/pom.xml
URL: http://svn.apache.org/viewvc/james/trunk/sandbox/felixk/mailbox/pom.xml?rev=1180624&r1=1180623&r2=1180624&view=diff
==============================================================================
--- james/trunk/sandbox/felixk/mailbox/pom.xml (original)
+++ james/trunk/sandbox/felixk/mailbox/pom.xml Sun Oct  9 14:25:20 2011
@@ -18,26 +18,23 @@
   under the License.    
 -->
 <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>
+
   <parent>
-    <artifactId>james-project</artifactId>
     <groupId>org.apache.james</groupId>
-    <version>1.6</version>
+    <artifactId>james-parent</artifactId>
+    <version>2.0-SNAPSHOT</version>
     <relativePath></relativePath>
   </parent>
 
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.james</groupId>
   <artifactId>apache-james-mailbox</artifactId>
-  <name>Apache James Mailbox</name>
   <version>0.4-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <name>Apache James Mailbox</name>
   <description>Apache James Mailbox</description>
   <url>http://james.apache.org/mailbox</url>
   <inceptionYear>2010</inceptionYear>
-  <packaging>pom</packaging>
-
-  <prerequisites>
-    <maven>3.0.2</maven>
-  </prerequisites>
 
   <modules>
     <module>api</module>
@@ -74,93 +71,10 @@
   </scm>
 
   <build>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-compiler-plugin</artifactId>
-          <version>2.3.2</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-jar-plugin</artifactId>
-          <version>2.3.1</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-project-info-reports-plugin</artifactId>
-          <version>2.3.1</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-assembly-plugin</artifactId>
-          <version>2.2</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.felix</groupId>
-          <artifactId>maven-bundle-plugin</artifactId>
-          <version>2.3.4</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-jxr-plugin</artifactId>
-          <version>2.2</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.7.2</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-surefire-report-plugin</artifactId>
-          <version>2.7.2</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-pmd-plugin</artifactId>
-          <version>2.5</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-javadoc-plugin</artifactId>
-          <version>2.7</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-site-plugin</artifactId>
-          <version>3.0</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-changes-plugin</artifactId>
-          <version>2.4</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.rat</groupId>
-          <artifactId>apache-rat-plugin</artifactId>
-          <version>0.7</version>
-        </plugin>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>findbugs-maven-plugin</artifactId>
-          <version>2.3.2</version>
-        </plugin>
-      </plugins>
-    </pluginManagement>
 
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <optimize>true</optimize>
-          <source>${target.jdk}</source>
-          <target>${target.jdk}</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <executions>
           <execution>
@@ -193,7 +107,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.7.2</version>
         <configuration>
           <forkMode>pertest</forkMode>
           <argLine>-Xms256m -Xmx512m</argLine>
@@ -224,184 +137,15 @@
           </instructions>
         </configuration>
       </plugin>
-      <!-- Site generation -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>attach-descriptor</id>
-            <goals>
-              <goal>attach-descriptor</goal>
-            </goals>
-            <configuration>
-              <siteDirectory>${basedir}/src/site</siteDirectory>
-              <generateReports>false</generateReports>
-            </configuration>
-          </execution>
-        </executions>
-        <configuration>
-          <siteDirectory>${maven-site-plugin.siteDirectory}</siteDirectory>
-          <generateReports>${maven-site-plugin.generateReports}</generateReports>
-          <reportPlugins>
-            <!-- Order matters. First project-info-reports, second jxr. -->
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-project-info-reports-plugin</artifactId>
-              <reports>
-                <report>dependencies</report>
-                <report>dependency-management</report>
-                <report>dependency-convergence</report>
-                <report>distribution-management</report>
-                <report>index</report>
-                <report>issue-tracking</report>
-                <report>license</report>
-                <report>mailing-list</report>
-                <report>modules</report>
-                <report>plugin-management</report>
-                <report>plugins</report>
-                <report>project-team</report>
-                <report>scm</report>
-                <report>summary</report>
-              </reports>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-jxr-plugin</artifactId>
-              <configuration>
-                <aggregate>true</aggregate>
-              </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-surefire-report-plugin</artifactId>
-              <configuration>
-                <forkMode>pertest</forkMode>
-                <argLine>-Xms256m -Xmx512m</argLine>
-                <testFailureIgnore>false</testFailureIgnore>
-                <skip>false</skip>
-                <includes>
-                  <include>**/*Test.java</include>
-                </includes>
-              </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.rat</groupId>
-              <artifactId>apache-rat-plugin</artifactId>
-              <version> </version>
-              <configuration>
-                <excludes>
-                  <exclude>NOTICE.*</exclude>
-                  <exclude>LICENSE.*</exclude>
-                  <exclude>BUILDING.*</exclude>
-                  <!-- Generated by Maven -->
-                  <exclude>release.properties</exclude>
-                  <exclude>dist/**/*</exclude>
-                  <exclude>**/derby.log</exclude>
-                  <!-- Eclipse -->
-                  <exclude>**/.*</exclude>
-                  <exclude>.*/**/*</exclude>
-                  <!-- Schemas for offline use -->
-                  <exclude>**/META-INF/XSD/activemq-core-*.xsd</exclude>
-                  <exclude>**/META-INF/XSD/camel-spring-*.xsd</exclude>
-                  <exclude>**/META-INF/XSD/spring-beans-*.xsd</exclude>
-                </excludes>
-              </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-pmd-plugin</artifactId>
-              <configuration>
-                <aggregate>true</aggregate>
-                <targetJdk>${target.jdk}</targetJdk>
-                <rulesets>
-                  <ruleset>/rulesets/basic.xml</ruleset>
-                  <ruleset>/rulesets/unusedcode.xml</ruleset>
-                  <ruleset>/rulesets/imports.xml</ruleset>
-                </rulesets>
-                <format>xml</format>
-                <linkXref>true</linkXref>
-                <sourceEncoding>utf-8</sourceEncoding>
-                <minimumTokens>100</minimumTokens>
-              </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-surefire-report-plugin</artifactId>
-              <configuration>
-                <aggregate>true</aggregate>
-              </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-javadoc-plugin</artifactId>
-              <configuration>
-                <minmemory>256m</minmemory>
-                <maxmemory>1g</maxmemory>
-                <linksource>true</linksource>
-                <tags>
-                  <tag>
-                    <name>note</name>
-                    <placement>a</placement>
-                    <head>NOTE</head>
-                  </tag>
-                  <tag>
-                    <name>todo</name>
-                    <placement>a</placement>
-                    <head>TODO</head>
-                  </tag>
-                  <tag>
-                    <name>warning</name>
-                    <placement>a</placement>
-                    <head>WARNING</head>
-                  </tag>
-                </tags>
-                <source>${target.jdk}</source>
-              </configuration>
-              <reportSets>
-                <reportSet>
-                  <reports>
-                    <report>aggregate</report>
-                    <report>test-aggregate</report>
-                  </reports>
-                </reportSet>
-              </reportSets>
-            </plugin>
-            <plugin>
-              <groupId>org.codehaus.mojo</groupId>
-              <artifactId>findbugs-maven-plugin</artifactId>
-              <configuration>
-                <xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation>
-                <xrefTestLocation>${project.reporting.outputDirectory}/../xref-test</xrefTestLocation>
-                <!-- required by dashboard plugin and hudson -->
-                <xmlOutput>true</xmlOutput>
-                <effort>Max</effort>
-                <findbugsXmlOutput>true</findbugsXmlOutput>
-                <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
-              </configuration>
-            </plugin>
-            <!--
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-changes-plugin</artifactId>
-              <configuration>
-                <onlyCurrentVersion>true</onlyCurrentVersion>
-                <resolutionIds>Fixed</resolutionIds>
-                <statusIds>Resolved,Closed</statusIds>
-                <columnNames>Type,Key,Summary,Status,Resolution,Fix Version</columnNames>
-              </configuration>
-              <reportSets>
-                <reportSet>
-                  <reports>
-                    <report>jira-report</report>
-                  </reports>
-                </reportSet>
-              </reportSets>
-            </plugin>
-            -->
-          </reportPlugins>
-        </configuration>
       </plugin>
+      <!-- 
+        Running the javadoc-plugin outside the site-plugin as well is needed, because otherwise
+        no javadoc will be generated when generating the official site documentation which also links
+        to javadoc. 
+      -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
@@ -410,33 +154,9 @@
             <phase>site</phase>
             <goals>
               <goal>aggregate</goal>
-              <goal>test-aggregate</goal>
             </goals>
           </execution>
         </executions>
-        <configuration>
-          <minmemory>256m</minmemory>
-          <maxmemory>1g</maxmemory>
-          <linksource>true</linksource>
-          <tags>
-            <tag>
-              <name>note</name>
-              <placement>a</placement>
-              <head>NOTE</head>
-            </tag>
-            <tag>
-              <name>todo</name>
-              <placement>a</placement>
-              <head>TODO</head>
-            </tag>
-            <tag>
-              <name>warning</name>
-              <placement>a</placement>
-              <head>WARNING</head>
-            </tag>
-          </tags>
-          <source>${target.jdk}</source>
-        </configuration>
       </plugin>
     </plugins>
   </build>
@@ -900,8 +620,6 @@
     <version.jackrabbit>2.2.0</version.jackrabbit>
     <version.hbase>0.90.4</version.hbase>
     <version.hadoop>0.20.204.0</version.hadoop>
-    
-    <target.jdk>1.6</target.jdk>
   </properties>
 </project>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org