This is common utilities for dealing with Strings, IOStreams, Files, Collections, Dates, Reflections.
mvn -DdownloadSources=true eclipse:eclipse
mvn clean install
- Change maven settings.xml and add account for OSSRH
<servers>
<server>
<id>ossrh</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>
</settings>
More information can be obtain from OSSRH guide and Maven configuration
-
mvn clean install
-
mvn release:prepare
-
checkout the newly created tag
-
mvn -Prelease clean javadoc:jar source:jar gpg:sign -Dgpg.passphrase=mysecret-password-for-gpg install org.sonatype.plugins:nexus-staging-maven-plugin:deploy
OR just execute
release.sh mysecret-password-for-gpg
Step 2 can be done manually: a) remove -SNAPSHOT from the version in pom.xml file b) commit the changes and create new tag with the version c) add -SNAPSHOT to pom.xml file and increase the version (e.g. 1.0.0 to 1.0.1-SNAPSHOT)