Skip to content

Commit ac84472

Browse files
committed
Setup properties for gpg key.
1 parent f331c43 commit ac84472

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

BUILD.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mvn clean install
99
Before deploying:
1010

1111
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.
1313

1414
To deploy (optionally adding sources and javadoc jars):
1515
mvn deploy

pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,10 @@
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>

settings-template.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
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>

0 commit comments

Comments
 (0)