I have a maven project that consists of a couple of modules. The main structure and setup is this:
/project/pom.xml
: packaging=pom, lists all sub-modules, version:TRUNK-SNAPSHOT
/project/core-module/pom.xml
: packaging=jar/project/war-module/pom.xml
: packaging=war, depends oncore-module
with${project.version}
I use IntelliJ for development if that somehow matters.
When I now develop/run/debug the war-module
and meanwhile I change code in the core-module
things get out of hand. The running war-module
application (running via jetty:run-exploded
) uses the core-module
which is "installed" in my local ~/.m2/ repository
instead of the current build. It doesen't matter if I do a "rebuild project" in IntelliJ or a mvn clean
before running.
My question is: do I have to mvn install
each time, can I circumvent the installed packages or do I have to change packaging options?