You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2011/02/11 15:06:32 UTC
svn commit: r1069800 - /lucene/dev/trunk/lucene/build.xml
Author: sarowe
Date: Fri Feb 11 14:06:31 2011
New Revision: 1069800
URL: http://svn.apache.org/viewvc?rev=1069800&view=rev
Log:
fix broken test-framework artifact deployment from generate-maven-artifacts
Modified:
lucene/dev/trunk/lucene/build.xml
Modified: lucene/dev/trunk/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/build.xml?rev=1069800&r1=1069799&r2=1069800&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/build.xml (original)
+++ lucene/dev/trunk/lucene/build.xml Fri Feb 11 14:06:31 2011
@@ -391,7 +391,8 @@
<target name="dist-all" depends="dist, dist-src"/>
- <target name="generate-maven-artifacts" depends="maven.ant.tasks-check, package, jar-src, jar-test-framework-src, javadocs">
+ <target name="generate-maven-artifacts"
+ depends="maven.ant.tasks-check, package, jar-src, jar-test-framework-src, javadocs">
<sequential>
<ant target="get-maven-poms" dir=".."/>
@@ -403,22 +404,35 @@
classifier="sources"/>
<attach file="${build.dir}/${final.name}-javadoc.jar"
classifier="javadoc"/>
- <attach file="${build.dir}/${final.name}-tests.jar"
- classifier="tests"/>
</artifact-attachments>
</m2-deploy>
- <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>
- <artifact:pom id="test-framework-pom" file="src/test-framework/pom.xml"/>
- <artifact:deploy>
- <attach file="${build.dir}/${final.name}-tests.jar"
- classifier="tests" />
+ <!--
+ For the purposes of the generated artifacts, change the <packaging>
+ in the test-framework POM from "jar" to "test-jar" - this allows
+ artifact:deploy to properly name the artifact. The Maven build doesn't
+ have a lifecycle mapping for the "test-jar" packaging, though, so the
+ POM in src/test-framework/ is left with the "jar" packaging.
+ -->
+ <property name="test-jar-packaging-test-framework-pom"
+ location="${build.dir}/test-jar-packaging-test-framework,pom"/>
+ <copy file="src/test-framework/pom.xml"
+ tofile="${test-jar-packaging-test-framework-pom}">
+ <filterset begintoken="<packaging>" endtoken="</packaging>">
+ <filter token="jar"
+ value="<packaging>test-jar</packaging>"/>
+ </filterset>
+ </copy>
+ <artifact:pom id="test-framework-pom"
+ file="${test-jar-packaging-test-framework-pom}"/>
+ <artifact:deploy file="${build.dir}/${final.name}-tests.jar">
<attach file="${build.dir}/${final.name}-tests-src.jar"
classifier="test-sources"/>
<attach file="${build.dir}/${final.name}-tests-javadoc.jar"
classifier="test-javadoc"/>
<remoteRepository url="${m2.repository.url}">
- <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
+ <authentication username="${m2.repository.username}"
+ privateKey="${m2.repository.private.key}"/>
</remoteRepository>
<pom refid="test-framework-pom"/>
</artifact:deploy>