blob: c74f7e5a892188177a456b02318be7e40f95ccf5 [file] [log] [blame]
Cédric Beusta4c2b802011-09-08 15:57:25 -07001New installation:
2
3Install GPG at http://www.gpgtools.org/gpgmail/index.html
4Generate new key with gpg --gen-key
5build-with-maven
6gpg --list-keys
7Send the public key:
8 gpg --keyserver hkp://pool.sks-keyservers.net --send-keys <public_key>
Cedric Beust1cdc3d32013-01-22 20:02:31 -08009 or wwwkeys.at.pgp.net
10
11
Cédric Beusta4c2b802011-09-08 15:57:25 -070012 instructions at https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
Cedric Beust1cdc3d32013-01-22 20:02:31 -080013
14
Cédric Beusta4c2b802011-09-08 15:57:25 -070015Configure ~/.m2/settings.xml with Nexus user/password:
Cedric Beust2f4538e2014-12-18 11:14:23 -080016
Cédric Beusta4c2b802011-09-08 15:57:25 -070017 <settings>
18 <servers>
19 <server>
Cedric Beust2f4538e2014-12-18 11:14:23 -080020 <id>sonatype-nexus-snapshots</id>
21 <username>***</username>
22 <password>***</password>
23 </server>
24 <server>
Cédric Beusta4c2b802011-09-08 15:57:25 -070025 <id>sonatype-nexus-staging</id>
Cedric Beust2f4538e2014-12-18 11:14:23 -080026 <username>***</username>
27 <password>***</password>
Cédric Beusta4c2b802011-09-08 15:57:25 -070028 </server>
29 </servers>
30 </settings>
Cedric Beust2f4538e2014-12-18 11:14:23 -080031
32Snaphot deploy:
33mvn -Dgpg.passphrase= -Dgpg.keyname=<public_key> deploy
34
35Staging deploy:
36mvn -Dgpg.passphrase= -Dgpg.keyname=<public_key> release:clean release:prepare release:perform