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

[config] Don't publish test and example modules to Maven Central #6675

Open
manusa opened this issue Nov 28, 2024 · 2 comments
Open

[config] Don't publish test and example modules to Maven Central #6675

manusa opened this issue Nov 28, 2024 · 2 comments
Milestone

Comments

@manusa
Copy link
Member

manusa commented Nov 28, 2024

Description

From quarkusio/quarkus#44810

Currently, some of the internal modules are being published to Maven Central.

Test, example, and parent modules should not be published to Maven Central.

The following snippet shows how this can be configured:

<properties>
<maven.deploy.skip>true</maven.deploy.skip><!-- Keep module private -->
</properties>

@gsmet
Copy link

gsmet commented Nov 29, 2024

Be careful, depending on how your publishing is configured, you sometimes need the last module to be deployed or nothing will be deployed. It's typically the case if you deploy at the end of the build.

What we recommend is to enable these modules only when you don't release.

For instance, with something like: https://github.com/quarkiverse/quarkus-github-app/blob/main/pom.xml#L180-L191

@manusa
Copy link
Member Author

manusa commented Nov 29, 2024

Thanks @gsmet
We'll definitely check what happens with the snapshot publishing before dealing with a final release once the issue is tackled.

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

2 participants