I have a maven Java project (Project A) which depends on a second project (Project B). Right now, Project A downloads Project B from the repository so it can build. However, I am also working on Project B. How can I get Maven to use the version of Project B which is on my machine and ignore the version in the repository?
Share
If both projects have the same version (and that’s a
SNAPSHOTversion), build Project B locally (mvn clean install) and Project A will use that version.