Publishing the artifact to Maven Central through the maven-release-plugin requires to be at a SNAPSHOT.
mvn release:clean release:preparemvn release:perform- Open Staging Repositories
- Select your staged project and press the Close button (top of the table)
- If all requirements are fulfilled, it will close and you can select Refresh and after selecting the project again: Release
It will take a little time until the released package appears in the maven central repository.