File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ mvn clean install
9
9
Before deploying:
10
10
11
11
copy 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 .
13
13
14
14
To deploy (optionally adding sources and javadoc jars):
15
15
mvn deploy
Original file line number Diff line number Diff line change 753
753
<groupId >org.apache.maven.plugins</groupId >
754
754
<artifactId >maven-gpg-plugin</artifactId >
755
755
<version >${version.plugin.maven.gpg} </version >
756
+ <configuration >
757
+ <keyname >${gpg.keyname} </keyname >
758
+ <passphraseServerId >${gpg.keyname} </passphraseServerId >
759
+ </configuration >
756
760
</plugin >
757
761
<plugin >
758
762
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 20
20
<id >ossrh-staging</id >
21
21
<username >your-sonatype.org-id</username >
22
22
<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 >
24
28
</servers >
29
+ <properties >
30
+ <gpg .keyname>your-gpg-keyname</gpg .keyname>
31
+ </properties >
25
32
</settings >
You can’t perform that action at this time.
0 commit comments