A brief description of how to release/deploy GIB.
Note: Releases and SNAPSHOTs are deployed via central-publishing-maven-plugin.
-
You must be a collaborator of GIB (or the owner)
-
GPG
-
Key is published
-
settings.xmlcontains something like:<profiles> <profile> <id>publish</id> <properties> <gpg.executable>C:\Program Files (x86)\GnuPG\bin\gpg.exe</gpg.executable> <gpg.keyname>your-key-fingerprint</gpg.keyname> </properties> </profile> </profiles>
-
Maven Central access
-
permissions have been granted (may require a ticket by the GIB owner or another collaborator)
-
settings.xmlcontains something like:<servers> <server> <id>central</id> <username>your-central-token-username</username> <password>your-central-token-password</password> </server> </servers>
Note: Log into https://central.sonatype.org and proceed as described here to get the token info.
- ℹ️
project/scm/developerConnectioninpom.xmlis set tohttpsprotocol (notsshorgit) mvn -Ppublish release:preparemvn -Ppublish release:perform- see also
maven-release-plugin
mvn -Ppublish clean deploy- note:
pom.xmlis left untouched