-
Notifications
You must be signed in to change notification settings - Fork 4
Modify plugin arguments in pom.xml #340
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,7 +255,7 @@ | |
| <releaseProfiles>release</releaseProfiles> | ||
| <goals>deploy</goals> | ||
| <!-- Only release production modules, exclude all sample modules --> | ||
| <arguments>-pl xapi-build,xapi-model,xapi-client,xapi-model-spring-boot-starter</arguments> | ||
| <arguments>-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am</arguments> | ||
|
||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing
xapi-buildfrom the-plargument may cause issues for consumers. The child modules (xapi-model, xapi-client, xapi-model-spring-boot-starter) referencexapi-buildas their parent in their POMs. When these artifacts are published to the snapshot repository, they will contain this parent reference, which means Maven needs to be able to resolve thexapi-buildPOM.With this change, only the three explicitly listed modules will be deployed, not the parent POM. This could result in "Could not find artifact dev.learning.xapi:xapi-build:pom:version" errors for consumers of snapshot versions.
The
-am(also-make) flag ensures that dependencies are built before the specified modules, but it does not affect which modules are deployed - only modules in the-pllist are deployed.Consider whether the parent POM should remain in the deployment list, or if there's another mechanism to ensure it's published to the snapshot repository.