Author: mrdon Date: Mon Jan 1 13:19:27 2007 New Revision: 491633 URL: http://svn.apache.org/viewvc?view=rev&rev=491633 Log: Adding generation of javadocs and sources jars when profile "alljars" is activated WW-1587
Modified: struts/struts2/trunk/core/pom.xml struts/struts2/trunk/pom.xml Modified: struts/struts2/trunk/core/pom.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/pom.xml?view=diff&rev=491633&r1=491632&r2=491633 ============================================================================== --- struts/struts2/trunk/core/pom.xml (original) +++ struts/struts2/trunk/core/pom.xml Mon Jan 1 13:19:27 2007 @@ -44,7 +44,6 @@ </execution> </executions> </plugin> - <!-- <plugin> <groupId>org.apache.myfaces.tobago</groupId> @@ -169,6 +168,59 @@ </dependency> </dependencies> </profile> + + <profile> + <id>alljars</id> + <build> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.2</version> + <executions> + <execution> + <id>attach-source</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + <configuration> + <sourcepath>${basedir}/src/main/java;${basedir}/target/xwork-sources</sourcepath> + <encoding>UTF-8</encoding> + <groups> + <group> + <title>Struts Packages</title> + <packages>org.apache.struts2*</packages> + </group> + <group> + <title>XWork Packages</title> + <packages>com.opensymphony.xwork2*</packages> + </group> + </groups> + <show>private</show> + <links> + <link>http://java.sun.com/j2se/1.5.0/docs/api</link> + <link>http://java.sun.com/javaee/5/docs/api/</link> + <link>http://jakarta.apache.org/commons/logging/apidocs/</link> + <link>http://logging.apache.org/log4j/docs/api/</link> + </links> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-source</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> Modified: struts/struts2/trunk/pom.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/pom.xml?view=diff&rev=491633&r1=491632&r2=491633 ============================================================================== --- struts/struts2/trunk/pom.xml (original) +++ struts/struts2/trunk/pom.xml Mon Jan 1 13:19:27 2007 @@ -135,7 +135,43 @@ <!-- should have the org.w3c.dom dependency here --> </dependencies> </profile> - + + <profile> + <id>alljars</id> + <build> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.2</version> + <!-- + <configuration> + <aggregate>true</aggregate> + </configuration> + --> + <executions> + <execution> + <id>attach-source</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-source</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> @@ -220,7 +256,7 @@ </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> - <version>2.0</version> + <version>2.2</version> <!-- <configuration> <aggregate>true</aggregate>