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:19:56 UTC
svn commit: r1069807 - /lucene/dev/branches/branch_3x/lucene/build.xml
Author: sarowe
Date: Fri Feb 11 14:19:56 2011
New Revision: 1069807
URL: http://svn.apache.org/viewvc?rev=1069807&view=rev
Log:
fix broken test-framework artifact deployment from generate-maven-artifacts
Modified:
lucene/dev/branches/branch_3x/lucene/build.xml
Modified: lucene/dev/branches/branch_3x/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/build.xml?rev=1069807&r1=1069806&r2=1069807&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/build.xml (original)
+++ lucene/dev/branches/branch_3x/lucene/build.xml Fri Feb 11 14:19:56 2011
@@ -421,17 +421,32 @@
</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>