Skip to content
New issue

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

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

Already on GitHub? # to your account

Example config for publishing to Maven Central #375

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leonardehrenfried
Copy link

This PR adds some example config for publishing to Maven Central.

I'm pleased to say that the publishing process is now a lot more pleasant than it was a few years ago. Sonatype really worked on the DX!

But there are some problems:

Parent POM

I removed the inheritance from the parent POM because it is defining the distribution repository to be camsys-apps.com but we don't want that. If you want to keep using the parent POM then you'd have to change a few things there.

Upload limit

The combined upload to Maven Central is 1.5 GB big which is above the size limit:

image

https://central.sonatype.org/publish/publish-portal-upload/

I'm not familiar with all these components but there are quite a few *-webapp modules that build large WAR files which are around 200MB each. Are these supposed to be published to Maven Central?

Because of the last point, I haven't actually succeeded in uploading the artifacts.

For reference, this is the command I executed for the deployment:

mvn deploy -DskipTests

cc @aaronbrethorst

@aaronbrethorst
Copy link
Member

Super cool thank you @leonardehrenfried! I'll review soon.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants