Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deny maven to use open projects in Eclipse instead of jar from repository

Currently if i have dependency project opened, then maven use it instead of specified jar from repo.

Is there Eclipse setting (or conf for pom), so maven will always use specified dependencies non-regarding if corresponding project opened or not in eclipse?

like image 515
Konstantin Petrukhnov Avatar asked Sep 24 '10 08:09

Konstantin Petrukhnov


People also ask

How does Maven decide which repository to use?

In maven we can define 0 or more repositories where it looks for resources. Repositories can be defined in settings. xml or within your pom. By default if you define no repositories everything will come from a repository name 'central' which is just the default one maintained by maven.


1 Answers

If you're using m2eclipse, right-click on your project and go to Properties > Maven and disable Resolve dependencies from Workspace projects.

like image 67
Pascal Thivent Avatar answered Oct 25 '22 07:10

Pascal Thivent