File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Maven Ant Tasks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Maven Ant Tasks" Watch "Maven Ant Tasks" New topic
Author

Maven Ant Tasks

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
I have a build file as shown below (AFTER THE ERROR).

When I try to run it I get the following error:


Buildfile: build.xml

BUILD FAILED
/Users/abder-rahmanali/Desktop/Hibernate/build.xml:13: The following error occurred while executing this line:
jar:file:/System/Library/Java/Extensions/maven-ant-tasks-2.0.9.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





How can I deal with this error?

Thanks.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

We have a separate forum for maven. I will move this topic there.

CarefullyChooseOneForum while posting.


apigee, a better way to API!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

What installation method did you use to install maven-ant-tasks-2.0.9.jar? http://maven.apache.org/ant-tasks/installation.html gives three options. If you did not copy the JAR to the Ant lib directory, you might try doing that.


JBoss In Action
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
Peter Johnson wrote:What installation method did you use to install maven-ant-tasks-2.0.9.jar? http://maven.apache.org/ant-tasks/installation.html gives three options. If you did not copy the JAR to the Ant lib directory, you might try doing that.


Thank you for your reply. I actually did include the maven-ant-tasks-2.0.9.jar in the Ant "lib" directory".


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Maven Ant Tasks