Reputation: 21
I created a maven multi modules project with 2 modules: core and service. Service module is using core module (core is declared as a dependency on service module). The parent pom version is 1.0-SNAPSHOT (so the modules too). During the maven clean package phase, maven is not fetching core module neither from my local repo nor from remote repo (nexus). It is always building with core module within the project and not fetching any more recent SNAPSHOT version from repo (local/remote). Is that the expected behaviour?
Upvotes: 1
Views: 1254
Reputation: 35823
If you build the project, it will build everything. The command clean package
will resolve the inter-module dependencies inside the project.
Everything else would probably lead to surprising results.
If you really just want to build just one module, use the -pl
parameter.
Upvotes: 0