Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Ant Tasks

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a separate forum for maven. I will move this topic there.

CarefullyChooseOneForum while posting.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic