javamavenmaven-dependency

Maven uses dependencies from workspace not .m2 folder


So I have the following project structure Sporium is a working set with the maven multimodule spigot-parent my problem now is when I define this pom.xml in my project it will not use the created dependency in the .m2 folder but instead it will use the files in the maven module project of my IDE's workspace which doesn't work because they are raw, unpatched and uncompiled files as seen here. Any idea how I can tell maven to not use the version in my workspace and only search in the local repo .m2 folder?


Solution

  • Right click on the project, choose "Maven" and then disable Workspace resolution.

    Then the projects are not resolved from your workspace any more.