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?
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.
If you're using m2eclipse, right-click on your project and go to Properties > Maven and disable Resolve dependencies from Workspace projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With