• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1New 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>
9  or wwwkeys.at.pgp.net
10
11
12  instructions at https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
13
14
15Configure ~/.m2/settings.xml with Nexus user/password:
16
17  <settings>
18    <servers>
19      <server>
20        <id>sonatype-nexus-snapshots</id>
21        <username>***</username>
22        <password>***</password>
23      </server>
24      <server>
25        <id>sonatype-nexus-staging</id>
26        <username>***</username>
27        <password>***</password>
28      </server>
29    </servers>
30  </settings>
31
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
37