• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Maven Ant Tasks

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a separate forum for maven. I will move this topic there.

CarefullyChooseOneForum while posting.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".


 
reply
    Bookmark Topic Watch Topic
  • New Topic