Exclude sample modules from Maven release using explicit reactor selection #338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
Resolves #337
Maven release was processing all modules including 30+ samples despite skip configurations in
samples/pom.xml. Skip flags prevent deployment but don't exclude modules from the reactor, causing release failures.Changes
Root cause: Maven's
-plwith negation (!samples) fails to exclude nested submodules defined in the samples parent POM.Solution: Explicitly list production modules in reactor selection.
<arguments>-pl xapi-model,xapi-client,xapi-model-spring-boot-starter</arguments>to maven-release-plugin configurationNow only the three production artifacts are built, signed, and published during releases. Sample modules remain buildable locally but are excluded from the release reactor entirely.
Checklist:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.