This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Project X is missing required Java project Y - But Maven is managing dependencies?

 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to Maven, Spring and JEE and starting a new job on a probation period (so be gentle!

I understand that Maven manages the build and oversees everything from compilation to later stages such as deployment. When I do a Maven build on a project of ours, Eclipse gives me the error in the subject of this thread. Why would a project be required and who / what is requiring it? The build was succesful (although there is a red exclamation mark on the project).
 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extra Info: The project does exist in the workspace. But as I checked it out from SVN, I prepended the name with [trunk] so that later checkouts from branch won't conflict.
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you import your project into eclipse? Are you using eclipse-maven-plugin?
 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jayesh. Yes, I used the SVN Exploring view to import it to the project space and m2e to build. I have removed the project dependencies and added them to the .pom file as maven dependencies, which seems to be working better (that is, I'm getting new errors now ). So is it just a badly made project that had Eclipse project specific dependencies defined when they should have been maven dependencies?
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes. You have your fix. Your dependencies should always be added to the pom, and not to the eclipse project. M2E will automatically import your maven dependencies into your eclipse project.
 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jayesh A Lalwani!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic