Eclipse m2eclipse getting dependencies from local repository

前端 未结 5 1951
眼角桃花
眼角桃花 2021-02-07 13:49

I have dependencies installed local on my machine (~/.m2/repository/blah/blah/blah) and m2eclipse is not recognizing them as there - I think m2eclipse is using its own maven ins

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-07 14:11

    I have dependencies installed local on my machine (~/.m2/repository/blah/blah/blah) and m2eclipse is not recognizing them as there.

    Do they have good metadata? How did you install them? Because m2eclipse definitely uses your local repository for dependency resolution.

    I think m2eclipse is using its own maven instance. Is there any way to force m2eclipse to use the local maven installation in osx?

    Yes, m2eclipse uses its own version of Maven by default and you can add an external installation via Window > Preferences > Maven > Installations but this won't change anything to the local repository used by one or the other that you can configure via Window > Preferences > Maven > User Settings as shown below:

    alt text http://www.imagebanana.com/img/w5y2vevt/screenshot_008.png

    This send us back to the questions above: how did you "install" the problematic dependencies?

提交回复
热议问题