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/04/05 06:22:35 UTC

svn commit: r1088886 - in /james/mailet/base/trunk: ./ src/reporting-site/ src/reporting-site/resources/ src/reporting-site/resources/images/ src/reporting-site/resources/images/logos/ src/site/ src/site/resources/images/ src/site/resources/images/logos/

Author: felixk
Date: Tue Apr  5 04:22:35 2011
New Revision: 1088886

URL: http://svn.apache.org/viewvc?rev=1088886&view=rev
Log:
Switch to and force maven 3. Add generation of technical reports using the -Psite-reports profile

Added:
    james/mailet/base/trunk/src/reporting-site/
    james/mailet/base/trunk/src/reporting-site/resources/
    james/mailet/base/trunk/src/reporting-site/resources/images/
    james/mailet/base/trunk/src/reporting-site/resources/images/logos/
    james/mailet/base/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif   (with props)
    james/mailet/base/trunk/src/reporting-site/resources/images/logos/james-mailet-base-logo.gif   (with props)
    james/mailet/base/trunk/src/reporting-site/site.xml   (with props)
    james/mailet/base/trunk/src/site/resources/images/logos/
    james/mailet/base/trunk/src/site/resources/images/logos/asf-logo-reduced.gif
      - copied unchanged from r1075290, james/mailet/base/trunk/src/site/resources/images/asf-logo-reduced.gif
    james/mailet/base/trunk/src/site/resources/images/logos/james-mailet-base-logo.gif
      - copied unchanged from r1075290, james/mailet/base/trunk/src/site/resources/images/james-mailet-base-logo.gif
Removed:
    james/mailet/base/trunk/src/site/resources/images/asf-logo-reduced.gif
    james/mailet/base/trunk/src/site/resources/images/james-mailet-base-logo.gif
Modified:
    james/mailet/base/trunk/pom.xml
    james/mailet/base/trunk/src/site/site.xml

Modified: james/mailet/base/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/mailet/base/trunk/pom.xml?rev=1088886&r1=1088885&r2=1088886&view=diff
==============================================================================
--- james/mailet/base/trunk/pom.xml (original)
+++ james/mailet/base/trunk/pom.xml Tue Apr  5 04:22:35 2011
@@ -1,5 +1,5 @@
-<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">
-  <!--
+<?xml version="1.0" encoding="ISO-8859-15"?>
+<!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
@@ -16,59 +16,39 @@
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     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>
+    <groupId>org.apache.james</groupId>
+    <artifactId>james-project</artifactId>
+    <version>1.6</version>
+  </parent>
   <groupId>org.apache.james</groupId>
   <artifactId>apache-mailet-base</artifactId>
   <name>Apache JAMES Basic Mailet Toolkit</name>
+  <url>http://james.apache.org/mailet/base/</url>
+  <inceptionYear>2008</inceptionYear>
   <version>1.2-SNAPSHOT</version>
   <packaging>jar</packaging>
+
   <description>
     Apache JAMES Basic Mailet Toolkit is a collection of utilities and lightweight framework
     aimed at developers and testers of mailets. This toolkit is extensively used elsewhere in
     JAMES.
   </description>
-  <parent>
-    <groupId>org.apache.james</groupId>
-    <artifactId>james-project</artifactId>
-    <version>1.5</version>
-  </parent>
-  <url>http://james.apache.org/mailet/base/</url>
-  <inceptionYear>2008</inceptionYear>
 
   <properties>
+    <target.jdk>1.5</target.jdk>
+     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <!-- Override the source descriptor -->
     <sourceReleaseAssemblyDescriptor>src</sourceReleaseAssemblyDescriptor>
-    
-    <!--
-    The website is committed to subversion. This property can be overriden
-    to upload the site to a local staging location.
-    For example, adding the following to ~/.m2/settings.xml will upload
-    to localhost:
-    
-      <profiles>
-        <profile>
-           <id>main</id>
-           <activation>
-              <activeByDefault>true</activeByDefault>
-           </activation>
-           <properties>
-              <james.www>scp://localhost/www</james.www>
-              <james.www.id>localhost</james.www.id>
-      ...
-    -->
-    <!-- General location for site stage -->
-    <james.www>scp://people.apache.org/www/james.apache.org/</james.www>
-    <!-- Project specific location, allowing specific override -->
-    <james.mailetbase.www>${james.www}/mailet/base/</james.mailetbase.www>
-    <!-- Overridding this value allows single set of loopback settings to be maintained -->
-    <james.www.id>mailet-base-website</james.www.id>
   </properties>
 
   <distributionManagement>
     <site>
-      <id>${james.www.id}</id>
-      <url>${james.mailetbase.www}</url>
+      <id>mailet-base-website</id>
+      <url>scp://people.apache.org/www/james.apache.org/mailet/base/</url>
     </site>
   </distributionManagement>
 
@@ -118,13 +98,88 @@
   </mailingLists>
 
   <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-remote-resources-plugin</artifactId>
+          <version>1.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <version>2.2.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <version>2.1.2</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-jxr-plugin</artifactId>
+          <version>2.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-changes-plugin</artifactId>
+          <version>2.4</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-report-plugin</artifactId>
+          <version>2.8</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>3.0-beta-3</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <version>2.2.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>findbugs-maven-plugin</artifactId>
+          <version>2.3.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>taglist-maven-plugin</artifactId>
+          <version>2.4</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
           <optimize>true</optimize>
-          <source>1.4</source>
-          <target>1.4</target>
+          <source>${target.jdk}</source>
+          <target>${target.jdk}</target>
           <encoding>UTF-8</encoding>
         </configuration>
       </plugin>
@@ -136,19 +191,16 @@
           <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
             <manifestEntries>
               <Specification-Title>Apache James Mailets Base</Specification-Title>
-              <Specification-Version>${pom.version}</Specification-Version>
+              <Specification-Version>${project.version}</Specification-Version>
               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
               <Implementation-Title>Apache James Mailets Base</Implementation-Title>
-              <Implementation-Version>${pom.version}</Implementation-Version>
+              <Implementation-Version>${project.version}</Implementation-Version>
               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
-              <url>${pom.url}</url>
+              <url>${project.url}</url>
             </manifestEntries>
           </archive>
         </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
         <executions>
           <execution>
             <goals>
@@ -160,7 +212,6 @@
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
-        <version>1.4.3</version>
         <executions>
           <execution>
             <id>bundle-manifest</id>
@@ -180,8 +231,8 @@
       </plugin>
       <!-- Add NOTICE and LICENSE to generated JAR -->
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-remote-resources-plugin</artifactId>
-        <version>1.0</version>
         <executions>
           <execution>
             <goals>
@@ -213,6 +264,7 @@
           </execution>
         </executions>
       </plugin>
+      <!--
 	  <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-doap-plugin</artifactId>
@@ -240,9 +292,10 @@
 
         </configuration>
       </plugin>
+      -->
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
-        <version>2.5</version>
         <executions>
           <execution>
             <id>create-javadocs</id>
@@ -255,6 +308,7 @@
         </executions>
       </plugin>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-assembly-plugin</artifactId>
         <configuration>
           <descriptorSourceDirectory>${basedir}/src/assemble/</descriptorSourceDirectory>
@@ -270,60 +324,169 @@
           </execution>
         </executions>
       </plugin>
-    </plugins>
-  </build>
-  
-   <reporting>
-    <plugins>
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.4.3</version>
-      </plugin>
-      <plugin>
-        <artifactId>maven-surefire-report-plugin</artifactId>
-        <version>2.4.3</version>
-      </plugin> 
-      <plugin>
-        <artifactId>maven-javadoc-plugin</artifactId>
-        <version>2.5</version>
-        <configuration>
-          <encoding>UTF-8</encoding>
-        </configuration>
-      </plugin>
+
+      <!-- Site generation -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jxr-plugin</artifactId>
-        <version>2.1</version>
-      </plugin>
-      <plugin>
         <artifactId>maven-site-plugin</artifactId>
-        <version>2.0-beta-6</version>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>rat-maven-plugin</artifactId>
-        <version>1.0-alpha-3</version>
-        <configuration>
-          <excludes>
-            <exclude>NOTICE.txt</exclude>
-            <exclude>LICENSE.txt</exclude>
-            <!-- Generated by Maven -->
-            <exclude>release.properties</exclude>
-            <exclude>dist/**/*</exclude>
-            <!-- Apache License, Version 2 -->
-            <exclude>stage/org.apache.james/xmls/*</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>taglist-maven-plugin</artifactId>
-        <version>2.3</version>
+        <executions>
+          <!-- Attach non-reporting site-descriptor when installing -->
+          <execution>
+            <id>attach-descriptor</id>
+            <goals>
+              <goal>attach-descriptor</goal>
+            </goals>
+            <configuration>
+              <siteDirectory>${basedir}/src/site</siteDirectory>
+              <generateReports>false</generateReports>
+            </configuration>
+          </execution>
+        </executions>
         <configuration>
-          <encoding>UTF-8</encoding>
+          <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>index</report>
+                    <report>project-team</report>
+                    <report>mailing-list</report>
+                    <report>cim</report>
+                    <report>issue-tracking</report>
+                    <report>license</report>
+                    <report>scm</report>
+                    <report>dependencies</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-jxr-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.apache.maven.plugins</groupId>
+              <artifactId>maven-pmd-plugin</artifactId>
+              <configuration>
+                <linkXref>true</linkXref>
+                <aggregate>true</aggregate>
+                <targetJdk>${target.jdk}</targetJdk>
+                <rulesets>
+                  <ruleset>/rulesets/basic.xml</ruleset>
+                  <ruleset>/rulesets/controversial.xml</ruleset>
+                </rulesets>
+                <format>xml</format>
+                <xrefLocation>${project.reporting.outputDirectory}/xref</xrefLocation>
+                <xrefTestLocation>${project.reporting.outputDirectory}/xref-test</xrefTestLocation>
+                <sourceEncoding>utf-8</sourceEncoding>
+                <minimumTokens>100</minimumTokens>
+              </configuration>
+            </plugin>
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>findbugs-maven-plugin</artifactId>
+              <configuration>
+                <!-- 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>Closed</resolutionIds>
+                  <maxEntries>1000</maxEntries>
+              </configuration>
+              <reportSets>
+                <reportSet>
+                  <reports>
+                    <report>jira-report</report>
+                  </reports>
+                </reportSet>
+              </reportSets>
+            </plugin>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-surefire-report-plugin</artifactId>
+              <configuration>
+                <argLine>-Xmx1024m -XX:MaxPermSize=512m</argLine>
+                <aggregate>true</aggregate>
+                <linkXref>true</linkXref>
+                <xrefLocation>${project.reporting.outputDirectory}</xrefLocation>
+              </configuration>
+            </plugin>
+            <plugin>
+              <groupId>org.apache.rat</groupId>
+              <artifactId>apache-rat-plugin</artifactId>
+              <configuration>
+                <excludes>
+                  <exclude>NOTICE.txt</exclude>
+                  <exclude>LICENSE.txt</exclude>
+                  <!--  --> Generated by Maven -->
+                  <exclude>release.properties</exclude>
+                  <exclude>dist/**/*</exclude>
+                  <!-- Apache License, Version 2 -->
+                  <exclude>stage/org.apache.james/xmls/*</exclude>
+                </excludes>
+              </configuration>
+            </plugin>
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>taglist-maven-plugin</artifactId>
+            </plugin>
+          </reportPlugins>
         </configuration>
       </plugin>
     </plugins>
-  </reporting>
-  
+  </build>
 </project>
\ No newline at end of file

Added: james/mailet/base/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif
URL: http://svn.apache.org/viewvc/james/mailet/base/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif?rev=1088886&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/mailet/base/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/mailet/base/trunk/src/reporting-site/resources/images/logos/james-mailet-base-logo.gif
URL: http://svn.apache.org/viewvc/james/mailet/base/trunk/src/reporting-site/resources/images/logos/james-mailet-base-logo.gif?rev=1088886&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/mailet/base/trunk/src/reporting-site/resources/images/logos/james-mailet-base-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/mailet/base/trunk/src/reporting-site/site.xml
URL: http://svn.apache.org/viewvc/james/mailet/base/trunk/src/reporting-site/site.xml?rev=1088886&view=auto
==============================================================================
--- james/mailet/base/trunk/src/reporting-site/site.xml (added)
+++ james/mailet/base/trunk/src/reporting-site/site.xml Tue Apr  5 04:22:35 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project name="${project.name}">
+
+    <skin>
+        <groupId>org.apache.james</groupId>
+        <artifactId>maven-skin</artifactId>
+        <version>1.6</version>
+    </skin>
+
+    <bannerLeft>
+        <name>JAMES Basic Mailet Toolkit</name>
+        <src>images/logos/james-mailet-base-logo.gif</src>
+        <href>http://james.apache.org/mailet/base/index.html</href>
+        <alt>james-mailet-base-logo.gif</alt>
+    </bannerLeft>
+
+    <bannerRight>
+        <name>The Apache Software Foundation</name>
+        <src>images/logos/asf-logo-reduced.gif</src>
+        <href>http://www.apache.org/index.html</href>
+    </bannerRight>
+
+    <body>
+
+        <menu ref="reports" />
+
+    </body>
+
+</project>

Propchange: james/mailet/base/trunk/src/reporting-site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: james/mailet/base/trunk/src/reporting-site/site.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: james/mailet/base/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/james/mailet/base/trunk/src/site/site.xml?rev=1088886&r1=1088885&r2=1088886&view=diff
==============================================================================
--- james/mailet/base/trunk/src/site/site.xml (original)
+++ james/mailet/base/trunk/src/site/site.xml Tue Apr  5 04:22:35 2011
@@ -18,24 +18,25 @@
   under the License.    
 -->
 <project name="Apache JAMES Basic Mailet Toolkit">
+  <skin>
+    <groupId>org.apache.james</groupId>
+    <artifactId>maven-skin</artifactId>
+    <version>1.6</version>
+  </skin>
+
   <bannerLeft>
     <name>JAMES Basic Mailet Toolkit</name>
-    <src>images/james-mailet-base-logo.gif</src>
+    <src>images/logos/james-mailet-base-logo.gif</src>
     <href>http://james.apache.org/mailet/base/index.html</href>
+    <alt>james-mailet-base-logo.gif</alt>
   </bannerLeft>
 
   <bannerRight>
     <name>The Apache Software Foundation</name>
-    <src>images/asf-logo-reduced.gif</src>
+    <src>images/logos/asf-logo-reduced.gif</src>
     <href>http://www.apache.org/index.html</href>
   </bannerRight> 
 
-  <skin>
-    <groupId>org.apache.james</groupId>
-    <artifactId>maven-skin</artifactId>
-    <version>1.2</version>
-  </skin>
-
   <body>
 
     <menu name="Basic Mailet Toolkit">



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