views:

193

answers:

2

I have dependancies 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 instance. Is there any way to force m2eclipse to use the local maven installation in osx?

+1  A: 

You can change the used Maven instance in Windows->Preferences->Maven->Installations. But I'm not sure whether this will help as a comment below that setting says that dependency resolution will still be done with the internal Maven installation.

If I were you, I would try to add that local repository to the list of known repositories. Use Window->Show View->Maven repositories (this is sadly not visible in the preferences).

Bananeweizen
+1  A: 

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

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

Pascal Thivent
the problem was not with m2eclipse, but with the installation of the dependancies.
wuntee
@wuntee: As expected :) Glad you solved the problem.
Pascal Thivent