You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Bushe <mi...@bushe.com> on 2009/12/21 19:24:50 UTC
maven-ant-tasks 2.1 regression from 2.0.10 ?
Hi,
Apache Pivot uses maven-ant-tasks to get it's ant build products into a
maven repo. This works if the classpath has maven-ant-tasks version 2.0.10
but does not work with maven-ant-tasks 2.1 on the classpath. The error
using 2.1 is:
maven-install:
[artifact:install] An error has occurred while processing the Maven
artifact tasks.
[artifact:install] Diagnosis:
[artifact:install]
[artifact:install] You must specify a file and/or an attached artifact to
install to the local repository.
This error message was added between 2.1 and 2.0.10:
http://svn.apache.org/viewvc/maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/DeployTask.java?view=diff&r1=884303&r2=884304&pathrev=884304
The Apache Pivot build.xml's relevant target is:
<!-- Installs JARs to local Maven repository -->
<target name="maven-install" depends="clean, package">
<artifact:install>
<artifact:pom file="pom.xml"/>
</artifact:install>
<artifact:install file="lib/pivot-core-${version}.jar">
<artifact:pom file="core/pom.xml"/>
</artifact:install>
<artifact:install file="lib/pivot-web-${version}.jar">
<artifact:pom file="web/pom.xml"/>
</artifact:install>
<artifact:install file="lib/pivot-wtk-${version}.jar">
<artifact:pom file="wtk/pom.xml"/>
</artifact:install>
<artifact:install file="lib/pivot-wtk-terra-${version}.jar">
<artifact:pom file="wtk-terra/pom.xml"/>
</artifact:install>
<artifact:install file="lib/pivot-charts-${version}.jar">
<artifact:pom file="charts/pom.xml"/>
</artifact:install>
</target>
Is there something that Pivot can do to adjust?
To reproduce and for more info, please follow this thread:
http://mail-archives.apache.org/mod_mbox/incubator-pivot-dev/200912.mbox/browser
Thanks,
Michael Bushe
Software Architect/Developer
michael@bushe.com
www.bushe.com