Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivanjensen-ep opened this issue May 11, 2023 · 0 comments

Comments

@ivanjensen-ep
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant