File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ mvn clean install
99Before deploying:
1010
1111copy settings-template.xml to ~/.m2/settings.xml adding your Sonatype OSSRH
12- username and passwords.
12+ username and passwords and also your GPG key and password .
1313
1414To deploy (optionally adding sources and javadoc jars):
1515mvn deploy
Original file line number Diff line number Diff line change 753753          <groupId >org.apache.maven.plugins</groupId >
754754          <artifactId >maven-gpg-plugin</artifactId >
755755          <version >${version.plugin.maven.gpg} </version >
756+           <configuration >
757+             <keyname >${gpg.keyname} </keyname >
758+             <passphraseServerId >${gpg.keyname} </passphraseServerId >
759+           </configuration >
756760        </plugin >
757761        <plugin >
758762          <groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 2020      <id >ossrh-staging</id >
2121      <username >your-sonatype.org-id</username >
2222      <password >your-sonatype.org-pwd</password >
23-     </server >      
23+     </server >
24+     <server >
25+       <id >${gpg.keyname}</id >
26+       <password >your-gpg-key-pwd</password >
27+     </server >
2428  </servers >
29+   <properties >
30+     <gpg .keyname>your-gpg-keyname</gpg .keyname>
31+   </properties >
2532</settings >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments