MyEclipse: Build path not auto updated after adding new maven dependenc
gang.yang - Mar 20, 2012 - 09:13 PM
Post subject: Build path not auto updated after adding new maven dependenc
I don't remember having this problem. But I'm using MyEclipse 9. After adding some new maven dependencies, the build path libraries was not automatically updated. So I end up being able to build the project with maven, but myeclipse shows error because of the missing new jars. How do I make myeclipse to update the build path libraries with the maven dependencies?
support-swapna - Mar 21, 2012 - 11:13 AM
Sorry that you are seeing this issue.
Can you give us some more details to help investigate the issue?
1) Can you please share the installation details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.
2) Can you clarify if the issue exists with all the added dependencies or just specific ones. Can you please list out the specific ones ?
3) I added a jar to the Maven repository from Import > Maven4MyEclipse > Import jar to Maven repository and then added the jar to the project from project > Maven4MyEclipse > Add Dependency wizard. I could see the jar auto updated in the project's build path.
4) Please list out the steps in detail which you are following for us to help replicate it at our end.
gang.yang - Mar 21, 2012 - 05:02 PM
Thanks for the reply. Your item 3) lead me to look into Maven4MyEclipse settings. I had Dependeny Management turned off (this is a replicated dev env at home). After turning it on, it does what I expected (as in my office dev env). So the problem is solved.
To clarify, my problem was not to import a dependency and then add it to the project's dependency via Maven4MyEclipse wizard. My problem was to add a dependency by manipulating the pom.xml of the project. After saving the pom.xml, MyEclipse did not automatically analyze the pom.xml dependencies and add it to MyEclipse's build path libraries. The cause was that I did not turn on Maven4MyEclipse's Depdendency Management. After doing so, it works.
support-swapna - Mar 27, 2012 - 05:56 AM
Glad that it is working.
Do let us know if you have any issues.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits