Background
- one trunk and one branch in a standard svn layout,
/trunkand/branches/prod - about 20 modules in the maven project
- when i want to compile trunk, just type
cd trunk; mvn clean package. but it will compile each of modules. something similar when the production need to be build. - a center maven repo
Problem
- if it’s possible to compile the updated module only? actually i want to compile the modified source files only if possible. i know it’s a simple thing by
antormake. however,maven compilealways make it from scratch. - should pom.xml in trunk and prod keep the same artifactId and version? the same artifactId and version cannot work with maven:deploy because trunk and prod will overwrite each others deployed packages.
You can try to use the mvn -am -pl option which will limit the operation to a given module.
If you do a
only the server module and the modules which are used by the server will be run through the appropriate lifecycle.
Only the cli module and the core module in this case will be run throught the given lifecycle.