- This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by support-swapna.
-
AuthorPosts
-
gang.yangMemberHi,
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?
Thanks,
Gang
support-swapnaModeratorGang,
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.yangMemberHi, Swapna,
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.
Gang
support-swapnaModeratorGang,
Glad that it is working.
Do let us know if you have any issues. -
AuthorPosts