- Make a change in the code
- Update the version in the
pom.xml
file by incrementing the version number - Ensure it compiles and commit the change
- Run the following command to create a release
mvn package -DskipTests
- Upload the jar file to Nexus:
- log in to https://public-nexus.ecwid.com
- click Upload -> thirdparty
- choose your jar file from
target
directory - fill Group ID, Artifact ID and Version from pom.xml (
org.kohsuke
:github-api
:<version>
) - enable Generate a POM file with these coordinates
- click Upload
Now the new version is available to be used in main project dependencies.
See https://github-api.kohsuke.org/ for more details