When using Maven with a multi-module project like:
/pom.xml
/project-a/pom.xml
/project-b/pom.xml
If the root POM builds both modules A and B, and B depends on A, when I'm running a mvn package
and I run the build from the root POM:
Q: Does the build for B pull from the current build "reactor" to locate the dependency for A? (ie. the changes in A that are being built) Or does it always go to the local repository?
Basically I'm trying to figure out if I need to be running mvn install
when there are changes in A that B depends on, or whether I can just run mvn package
to save some time.