You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ju...@apache.org on 2011/05/20 14:14:59 UTC
svn commit: r1125344 - /tika/trunk/pom.xml
Author: jukka
Date: Fri May 20 12:14:59 2011
New Revision: 1125344
URL: http://svn.apache.org/viewvc?rev=1125344&view=rev
Log:
TIKA-628: Binary distribution for releases
Add POM scripting to automatically prepare the release folder
Modified:
tika/trunk/pom.xml
Modified: tika/trunk/pom.xml
URL: http://svn.apache.org/viewvc/tika/trunk/pom.xml?rev=1125344&r1=1125343&r2=1125344&view=diff
==============================================================================
--- tika/trunk/pom.xml (original)
+++ tika/trunk/pom.xml Fri May 20 12:14:59 2011
@@ -88,6 +88,9 @@
<profiles>
<profile>
<id>apache-release</id>
+ <properties>
+ <username>${user.name}</username>
+ </properties>
<build>
<plugins>
<plugin>
@@ -113,6 +116,86 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>deploy</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="${basedir}/target/${project.version}" />
+ <copy todir="${basedir}/target/${project.version}" flatten="true">
+ <fileset dir="${basedir}">
+ <include name="CHANGES.txt" />
+ <include name="target/*-src.zip*" />
+ <include name="tika-app/target/*-${project.version}.jar*" />
+ </fileset>
+ </copy>
+ <checksum algorithm="MD5" fileext=".md5">
+ <fileset dir="${basedir}/target/${project.version}">
+ <include name="*.zip" />
+ <include name="*.?ar" />
+ </fileset>
+ </checksum>
+ <checksum algorithm="SHA1" fileext=".sha">
+ <fileset dir="${basedir}/target/${project.version}">
+ <include name="*.zip" />
+ <include name="*.?ar" />
+ </fileset>
+ </checksum>
+ <checksum file="${basedir}/target/${project.version}/tika-${project.version}-src.zip" algorithm="SHA1" property="checksum" />
+ <echo file="${basedir}/target/vote.txt">
+From: ${username}@apache.org
+To: dev@tika.apache.org
+Subject: [VOTE] Release Apache Tika ${project.version}
+
+A candidate for the Tika ${project.version} release is available at:
+
+ http://people.apache.org/~${username}/tika/${project.version}/
+
+The release candidate is a zip archive of the sources in:
+
+ http://svn.apache.org/repos/asf/tika/tags/${project.version}/
+
+The SHA1 checksum of the archive is ${checksum}.
+
+Please vote on releasing this package as Apache Tika ${project.version}.
+The vote is open for the next 72 hours and passes if a majority of at
+least three +1 Tika PMC votes are cast.
+
+ [ ] +1 Release this package as Apache Tika ${project.version}
+ [ ] -1 Do not release this package because...${line.separator}
+ </echo>
+ <echo />
+ <echo>
+The release candidate has been prepared in:
+
+ ${basedir}/target/${project.version}
+
+Please deploy it to people.apache.org like this:
+
+ scp -r ${basedir}/target/${project.version} people.apache.org:public_html/tika/
+
+A release vote template has been generated for you:
+
+ file://${basedir}/target/vote.txt
+ </echo>
+ <echo />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-nodeps</artifactId>
+ <version>1.8.1</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>
</profile>