Maven Release To Sonatype Repository
nexus staging plugin
nexus-staging-maven-plugin
is a plugin just for nexus related repositories.
In order to release into maven central repository, you need to pass all checks that acquired by central repository.
Here, I will show you how to release an artifact by using nexus-staging
plugin.
1 |
|
maven release plugin
Another way to do release is by using maven-release-plugin
.
Release plugin will automatically flip the artifact version for you, and push the changes to your scm.
This procedure is totally automatic. That’s how we don’t need to manually open the pom.xml
to change the version.
1 |
|
summary
So usually, if a repository doesn’t require many checks like maven central repository, you just need to use release
plugin for simplicity.
But for maven central repository, you need to go through their requirement, which makes a lot of senses.