This is a maven-wrapped version of official OpenNebula java client library (see here).
Build needs .env file to contain
export GPG_KEY_NAME=...
export GPG_KEY_PASS=...
- Configure Sonatype servers in
~/.m2/settings.xml
<settings>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>{sonatype-jira-login}</username>
<password>{sonatype-jira-password}</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>{sonatype-jira-login}</username>
<password>{sonatype-jira-password}</password>
</server>
</servers>
</settings>
- Check maven settings
mvn help:effective-settings
- Sign artifacts during build
mvn -DskipTests -Dgpg.passphrase="${GPG_PASSPHRASE}" clean package
- Deploy to Sonatype
mvn -DskipTests deploy
-
Open Sonatype Nexus OSS
-
Release artifact as described here at step 6