You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bs...@apache.org on 2007/09/24 23:06:19 UTC
svn commit: r578968 - /commons/proper/email/trunk/pom.xml
Author: bspeakmon
Date: Mon Sep 24 14:06:18 2007
New Revision: 578968
URL: http://svn.apache.org/viewvc?rev=578968&view=rev
Log:
- use custom release profile for source/javadoc jar generation instead of maven plugins;
tasks shamelessly stolen from io 1.3.2 POM, thanks Jochen
Modified:
commons/proper/email/trunk/pom.xml
Modified: commons/proper/email/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/pom.xml?rev=578968&r1=578967&r2=578968&view=diff
==============================================================================
--- commons/proper/email/trunk/pom.xml (original)
+++ commons/proper/email/trunk/pom.xml Mon Sep 24 14:06:18 2007
@@ -330,4 +330,49 @@
</plugins>
</reporting>
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <copy todir="${project.build.directory}/site/api-release">
+ <fileset dir="${project.build.directory}/site/apidocs"/>
+ </copy>
+ <zip destfile="${project.build.directory}/${artifactId}-${version}-javadoc.jar.new">
+ <zipfileset src="${project.build.directory}/${artifactId}-${version}-javadoc.jar"/>
+ <zipfileset dir="." prefix="META-INF">
+ <include name="LICENSE.txt"/>
+ <include name="NOTICE.txt"/>
+ </zipfileset>
+ </zip>
+ <move file="${project.build.directory}/${artifactId}-${version}-javadoc.jar.new"
+ tofile="${project.build.directory}/${artifactId}-${version}-javadoc.jar"/>
+ <zip destfile="${project.build.directory}/${artifactId}-${version}-sources.jar.new">
+ <zipfileset src="${project.build.directory}/${artifactId}-${version}-sources.jar"/>
+ <zipfileset dir="." prefix="META-INF">
+ <include name="LICENSE.txt"/>
+ <include name="NOTICE.txt"/>
+ </zipfileset>
+ </zip>
+ <move file="${project.build.directory}/${artifactId}-${version}-sources.jar.new"
+ tofile="${project.build.directory}/${artifactId}-${version}-sources.jar"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>