Home | History | Annotate | Download | only in testng
      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>
      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 
     15 Configure ~/.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 
     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
     37