• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Importing an ANT build that uses Maven ANT Tasks into Eclipse?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm reading the book Harnessing Hibernate, and though my project compiles just fine from the command line, I'd like to use it in Eclipse.

The project uses the Maven ANT Tasks, and though I've used both ANT and Maven by themselves with Eclipse, I've never used the Maven ANT Tasks along with Eclipse.

I tried importing my existing project into my eclipse workspace by way of the File -> New -> Project ... and then selecting Java Project from Existing Ant Buildfile, then I select my ANT build file, and I am presented with the following error:


Error occurred creating project

Problem setting the classpath of the project from the javac classpath: Reference dependecy.class.path not found.



The project appears in Eclipse, but there's obviously something wrong.

I've tried adding an environment variable in my project to point to the maven repo (M2_REPO), without any luck, although eclipse appears to acknowledge that the classes withint the jars are present.

Here is the build file from Harnessing Hibernate:



As you can see the dependency.class.path classpath entry that eclipse complained about, is that which specifies the list of dependencies from the maven ant tasks.



 
Andrew Leer
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*bump*
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!