You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Brendan cheng <cc...@hotmail.com> on 2011/12/21 03:42:17 UTC

Pivot ant maven-install build error

Hi,
I tried to follow the instruction from BUILD file to build 2.0.1 in my local environment but failed with:
BUILD FAILED/Users/ccp999/.Trash/pivot/build.xml:810: The following error occurred while executing this line:jar:file:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/maven-ant-tasks-2.1.3.jar!/org/apache/maven/artifact/ant/antlib.xml:4: taskdef A class needed by class org.apache.maven.artifact.ant.DependenciesTask cannot be found: org/apache/tools/ant/Task using the classloader AntClassLoader[]
What did I miss?
Brendan 		 	   		  

Re: Pivot ant maven-install build error

Posted by Sandro Martini <sa...@gmail.com>.
Hi,
remember to set in your CLASSPATH even the jar for the maven-ant-tasks
jar, probably the line inside the BUILD file
* To install in a local Maven repository (requires Maven Ant tasks):
is not so clear ...

For example this is for one of my environments:
CLASSPATH=.;C:/javalib/junit-4.8.2.jar;C:/javalib/maven-ant-tasks-2.1.3.jar

I have just tried from an updated trunk and all is Ok.

Bye