Publish Your First Artifact to Maven Central Using GitHub Actions

A step-by-step guide to the process of publishing artifacts in Maven Central

a
Photo by Ferenc Almasi on Unsplash

Overall Process

1. Create a project and request access to maven central.

2. Signing Artifacts / GPG setup

3. Adding metadata to the POM

4. Generate JavaDoc and sources jar.

5. Prepare POM for deployment

6. Automate deployment to staging and release using GitHub Actions

7. Enable synchronization after first release.

building software @ Singapore Airlines | making code work for 8+ years | passionate about automation and “everything as code”.