Author: felixk
Date: Tue Apr 5 04:12:32 2011
New Revision: 1088883
URL: http://svn.apache.org/viewvc?rev=1088883&view=rev
Log:
Switch to and force maven 3. Add generation of technical reports using the
-Psite-reports profile
Added:
james/mailet/api/trunk/src/reporting-site/
james/mailet/api/trunk/src/reporting-site/resources/
james/mailet/api/trunk/src/reporting-site/resources/images/
james/mailet/api/trunk/src/reporting-site/resources/images/logos/
james/mailet/api/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif
(with props)
james/mailet/api/trunk/src/reporting-site/resources/images/logos/james-mailetapi-logo.gif
(with props)
james/mailet/api/trunk/src/reporting-site/site.xml (with props)
james/mailet/api/trunk/src/site/resources/images/logos/
james/mailet/api/trunk/src/site/resources/images/logos/asf-logo-reduced.gif
- copied unchanged from r1075290,
james/mailet/api/trunk/src/site/resources/images/asf-logo-reduced.gif
james/mailet/api/trunk/src/site/resources/images/logos/james-mailetapi-logo.gif
- copied unchanged from r1075290,
james/mailet/api/trunk/src/site/resources/images/james-mailetapi-logo.gif
Removed:
james/mailet/api/trunk/src/site/resources/images/asf-logo-reduced.gif
james/mailet/api/trunk/src/site/resources/images/james-mailetapi-logo.gif
Modified:
james/mailet/api/trunk/pom.xml
james/mailet/api/trunk/src/site/site.xml
Modified: james/mailet/api/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/james/mailet/api/trunk/pom.xml?rev=1088883&r1=1088882&r2=1088883&view=diff
==============================================================================
--- james/mailet/api/trunk/pom.xml (original)
+++ james/mailet/api/trunk/pom.xml Tue Apr 5 04:12:32 2011
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-15"?>
-<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">
- <!--
+<!--
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
@@ -17,23 +16,25 @@
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</artifactId>
<name>Apache Mailet API</name>
+ <inceptionYear>2007</inceptionYear>
+ <url>http://james.apache.org/mailet/api/</url>
<version>2.5-SNAPSHOT</version>
<packaging>jar</packaging>
+
<description>
The Apache Mailet API is a flexible specification for mail processing
agents.
</description>
- <parent>
- <groupId>org.apache.james</groupId>
- <artifactId>james-project</artifactId>
- <version>1.5</version>
- </parent>
- <url>http://james.apache.org/mailet/api/</url>
- <inceptionYear>2007</inceptionYear>
<distributionManagement>
<site>
@@ -64,8 +65,9 @@
</url>
</scm>
- <!-- This is here because of http://jira.codehaus.org/browse/MRRESOURCES-6
-->
<properties>
+ <target.jdk>1.5</target.jdk>
+ <!-- This is here because of http://jira.codehaus.org/browse/MRRESOURCES-6
-->
<maven.test.skip>true</maven.test.skip>
</properties>
@@ -95,13 +97,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.maven.plugins</groupId>
+ <artifactId>maven-doap-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.8</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-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-site-plugin</artifactId>
+ <version>3.0-beta-3</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-pmd-plugin</artifactId>
+ <version>2.5</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>taglist-maven-plugin</artifactId>
+ <version>2.4</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>1.5</source>
- <target>1.5</target>
+ <source>${target.jdk}</source>
+ <target>${target.jdk}</target>
</configuration>
</plugin>
<plugin>
@@ -111,21 +188,21 @@
<archive>
<manifestEntries>
<Specification-Title>Apache Mailet API</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 Mailet API</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>
<!-- 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>
@@ -144,6 +221,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-doap-plugin</artifactId>
@@ -171,52 +249,169 @@
</configuration>
</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.4</version>
- </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>
+ <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>
- <excludes>
- <exclude>NOTICE.txt</exclude>
- <exclude>LICENSE.txt</exclude>
- <!-- Generated by Maven -->
- <exclude>release.properties</exclude>
- <exclude>dist/**/*</exclude>
- </excludes>
+ <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>
+ <exclude>LICENSE.apache</exclude>
+ <!-- Generated by Maven -->
+ <exclude>release.properties</exclude>
+ <exclude>dist/**/*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ </plugin>
+ </reportPlugins>
</configuration>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <version>2.2</version>
- </plugin>
</plugins>
- </reporting>
-
+ </build>
</project>
Added:
james/mailet/api/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif
URL:
http://svn.apache.org/viewvc/james/mailet/api/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif?rev=1088883&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
james/mailet/api/trunk/src/reporting-site/resources/images/logos/asf-logo-reduced.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added:
james/mailet/api/trunk/src/reporting-site/resources/images/logos/james-mailetapi-logo.gif
URL:
http://svn.apache.org/viewvc/james/mailet/api/trunk/src/reporting-site/resources/images/logos/james-mailetapi-logo.gif?rev=1088883&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
james/mailet/api/trunk/src/reporting-site/resources/images/logos/james-mailetapi-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: james/mailet/api/trunk/src/reporting-site/site.xml
URL:
http://svn.apache.org/viewvc/james/mailet/api/trunk/src/reporting-site/site.xml?rev=1088883&view=auto
==============================================================================
--- james/mailet/api/trunk/src/reporting-site/site.xml (added)
+++ james/mailet/api/trunk/src/reporting-site/site.xml Tue Apr 5 04:12:32 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 Mailet API</name>
+ <src>/images/logos/james-mailetapi-logo.gif</src>
+ <href>http://james.apache.org/mailet/index.html</href>
+ <alt>james-mailetapi-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/api/trunk/src/reporting-site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: james/mailet/api/trunk/src/reporting-site/site.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: james/mailet/api/trunk/src/site/site.xml
URL:
http://svn.apache.org/viewvc/james/mailet/api/trunk/src/site/site.xml?rev=1088883&r1=1088882&r2=1088883&view=diff
==============================================================================
--- james/mailet/api/trunk/src/site/site.xml (original)
+++ james/mailet/api/trunk/src/site/site.xml Tue Apr 5 04:12:32 2011
@@ -18,24 +18,25 @@
under the License.
-->
<project name="Mailet API">
+ <skin>
+ <groupId>org.apache.james</groupId>
+ <artifactId>maven-skin</artifactId>
+ <version>1.6</version>
+ </skin>
+
<bannerLeft>
<name>JAMES Mailet API</name>
- <src>/images/james-mailetapi-logo.gif</src>
+ <src>/images/logos/james-mailetapi-logo.gif</src>
<href>http://james.apache.org/mailet/index.html</href>
+ <alt>james-mailetapi-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="Mailet API">