Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 1 | New installation: |
| 2 | |
| 3 | Install GPG at http://www.gpgtools.org/gpgmail/index.html |
| 4 | Generate new key with gpg --gen-key |
| 5 | build-with-maven |
| 6 | gpg --list-keys |
| 7 | Send the public key: |
| 8 | gpg --keyserver hkp://pool.sks-keyservers.net --send-keys <public_key> |
Cedric Beust | 1cdc3d3 | 2013-01-22 20:02:31 -0800 | [diff] [blame] | 9 | or wwwkeys.at.pgp.net |
| 10 | |
| 11 | |
Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 12 | instructions at https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven |
Cedric Beust | 1cdc3d3 | 2013-01-22 20:02:31 -0800 | [diff] [blame] | 13 | |
| 14 | |
Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 15 | Configure ~/.m2/settings.xml with Nexus user/password: |
Cedric Beust | 2f4538e | 2014-12-18 11:14:23 -0800 | [diff] [blame] | 16 | |
Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 17 | <settings> |
| 18 | <servers> |
| 19 | <server> |
Cedric Beust | 2f4538e | 2014-12-18 11:14:23 -0800 | [diff] [blame] | 20 | <id>sonatype-nexus-snapshots</id> |
| 21 | <username>***</username> |
| 22 | <password>***</password> |
| 23 | </server> |
| 24 | <server> |
Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 25 | <id>sonatype-nexus-staging</id> |
Cedric Beust | 2f4538e | 2014-12-18 11:14:23 -0800 | [diff] [blame] | 26 | <username>***</username> |
| 27 | <password>***</password> |
Cédric Beust | a4c2b80 | 2011-09-08 15:57:25 -0700 | [diff] [blame] | 28 | </server> |
| 29 | </servers> |
| 30 | </settings> |
Cedric Beust | 2f4538e | 2014-12-18 11:14:23 -0800 | [diff] [blame] | 31 | |
| 32 | Snaphot deploy: |
| 33 | mvn -Dgpg.passphrase= -Dgpg.keyname=<public_key> deploy |
| 34 | |
| 35 | Staging deploy: |
| 36 | mvn -Dgpg.passphrase= -Dgpg.keyname=<public_key> release:clean release:prepare release:perform |