Skip to content

[Chore]: Exclude all sample modules from Maven release process #337

Closed

Description

@thomasturrell

What

Update the Maven release automation to reliably exclude all sample modules from being released.

Several exclusion methods in both workflow and Maven CLI have failed, resulting in sample modules being published. Need a robust solution to prevent this and ensure only intended production modules are released.

Why

This is necessary to prevent sample projects from being included in releases, which pollutes Maven Central and can lead to unintended distribution of example code. A robust solution will help maintain the integrity and professionalism of the published artifacts.

Notes

Previous strategies to exclude sample modules from the Maven release have failed. See #335 for prior attempts and history.

Also see https://github.com/BerryCloud/xapi-java/actions/runs/19395681818 for an example of a failed run.

Consider using -pl with exclusion, modifying Maven workflow configuration, or updating pom files

Looking for guidance or a working example for reliably excluding sample modules. Best practice recommendations and example configs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions