incremental-module-builder
incremental-module-builder copied to clipboard
ModuleCalculator doesn't calculate the modules to build accurately in multi-module maven project
The hierarchy of the project is like below:
/-
+- Base
+- Components
- cu-alerts-ejb
- cu-accttitle-ejb
So you can expect:
- module names of cu-*-ejb mentioned in /Base/Components/pom.xml
- module name of Component mentioned in /Base/pom.xml
Although change is done only in files inside cu-*-ejb, parent of these modules are also calculated as module to build including all the sub-projects under the parent module. This doesn't appear to be calculated right as we want to build the changed modules and all other modules that consume them as dependencies.
Behavior should have been similar to what would happen with "mvn package -pl :cu-alerts-ejb,cu-accttitle-ejb -amd", but from the reactor output and modules chosen to build it doesn't appear to have done the calculation correctly.
[INFO] ------------------------------------ [INFO] Maven Incremental Module Builder [INFO] Version: 0.2.0 [INFO] ------------------------------------ [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel" [INFO] Working directory: C:\delete\Starlight [INFO] Executing: cmd.exe /X /C "git status --porcelain ." [INFO] Working directory: C:\delete\Starlight [WARNING] Ignoring unrecognized line: ?? .mvn/ [INFO] Changed file: Base/Components/cu-accttitle-ejb/src/main/java/com/mschematic/platform/accttitle/ejb/AcctTitle.java modified [INFO] Changed file: Base/Components/cu-alerts-ejb/src/main/java/com/mschematic/platform/alerts/ejb/AlertLogQueryBuilder.java modified [INFO] Changed Project: com.zenmonics.starlight.connect.base:Base:pom:9.5.0-8.0.0-SNAPSHOT [INFO] Changed Project: com.zenmonics.starlight.connect.base:Components:pom:9.5.0-8.0.0-SNAPSHOT [INFO] Changed Project: com.zenmonics.starlight.connect.base:cu-alerts-ejb:ejb:9.5.0-8.0.0-SNAPSHOT [INFO] Changed Project: com.zenmonics.starlight.connect.base:cu-accttitle-ejb:ejb:9.5.0-8.0.0-SNAPSHOT