facebook

Build path not auto updated after adding new maven dependenc

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #324451 Reply

    gang.yang
    Member

    Hi,

    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

    #324474 Reply

    support-swapna
    Moderator

    Gang,

    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.

    #324488 Reply

    gang.yang
    Member

    Hi, 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

    #324669 Reply

    support-swapna
    Moderator

    Gang,

    Glad that it is working.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Build path not auto updated after adding new maven dependenc

You must be logged in to post in the forum log in