elasticpath / mvnmin

Builds only changed maven modules, speeding up your multi-module maven project builds.
Apache License 2.0
43 stars 0 forks source link

The `--pl` project list is passed incorrectly all reactors, instead of consolidating with `--projects` #23

Open ivanjensen-ep opened 1 year ago

ivanjensen-ep commented 1 year ago

Using --projects works as expected, and ext-cm-parent is only activated for reactor 0:

$ mvnmin -d --projects :ext-cm-parent

RUN  0 ep-commerce                          : mymvn -d -f pom.xml -Dinvoker.skip --projects com.elasticpath.extensions:ext-batch-webapp,com.elasticpath:bill-of-materials,com.elasticpath:ep-search-acceptance-tests,com.elasticpath.extensions:ext-cortex-webapp,com.elasticpath:ep-batch,com.elasticpath:ep-catalog-batch,:ext-cm-parent,com.elasticpath:commerce-parent,com.elasticpath:ep-batch-itests,com.elasticpath.cmclient:cm-libs,com.elasticpath.extensions:ext-commerce-engine-wrapper,com.elasticpath:ep-core

RUN  1 Commerce Manager modules             : mymvn -d -f commerce-manager/cm-modules/pom.xml -T1 --projects com.elasticpath.cmclient:cm-p2-repository,com.elasticpath.cmclient:com.elasticpath.cmclient.platform.feature

SKIP 2 Commerce Manager translation modules : mymvn -d -f commerce-manager/cm-modules/translations/pom.xml -T1

RUN  3 Extensions Commerce Manager glue     : mymvn -d -f extensions/cm/pom.xml --projects com.elasticpath.extensions:ext-cm-repository

RUN  4 Extensions Commerce Manager modules  : mymvn -d -f extensions/cm/ext-cm-modules/pom.xml -T1 --projects com.elasticpath.extensions.cm:ext-cm-webapp

SKIP 5 Smoke Test                           : mymvn -d -f pom.xml

Whereas using --pl causes those projects to be incorrectly. passed to all reactors:

$ mvnmin -d --pl :ext-cm-parent

RUN  0 ep-commerce                          : mymvn -d --pl :ext-cm-parent -f pom.xml -Dinvoker.skip --projects com.elasticpath.extensions:ext-batch-webapp,com.elasticpath:bill-of-materials,com.elasticpath:ep-search-acceptance-tests,com.elasticpath.extensions:ext-cortex-webapp,com.elasticpath:ep-batch,com.elasticpath:ep-catalog-batch,com.elasticpath:commerce-parent,com.elasticpath:ep-batch-itests,com.elasticpath.cmclient:cm-libs,com.elasticpath.extensions:ext-commerce-engine-wrapper,com.elasticpath:ep-core

RUN  1 Commerce Manager modules             : mymvn -d --pl :ext-cm-parent -f commerce-manager/cm-modules/pom.xml -T1 --projects com.elasticpath.cmclient:cm-p2-repository,com.elasticpath.cmclient:com.elasticpath.cmclient.platform.feature

SKIP 2 Commerce Manager translation modules : mymvn -d --pl :ext-cm-parent -f commerce-manager/cm-modules/translations/pom.xml -T1

RUN  3 Extensions Commerce Manager glue     : mymvn -d --pl :ext-cm-parent -f extensions/cm/pom.xml --projects com.elasticpath.extensions:ext-cm-repository

RUN  4 Extensions Commerce Manager modules  : mymvn -d --pl :ext-cm-parent -f extensions/cm/ext-cm-modules/pom.xml -T1 --projects com.elasticpath.extensions.cm:ext-cm-webapp

SKIP 5 Smoke Test                           : mymvn -d --pl :ext-cm-parent -f pom.xml