Skip to content

Commit 0fdd1c0

Browse files
Support local specification of gpg publishing key
1 parent 3412b90 commit 0fdd1c0

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

README.dev.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ Put this information into `~/.m2/settings.xml` (Maven settings). Your
4747
<username>git</username>
4848
</server>
4949
</servers>
50+
<profiles>
51+
<profile>
52+
<id>my_profile_id</id>
53+
<activation>
54+
<activeByDefault>true</activeByDefault>
55+
</activation>
56+
<properties>
57+
<gpg.keyname><!-- The GPG ID of your publishing key --></gpg.keyname>
58+
</properties>
59+
</profile>
60+
</profiles>
5061
</settings>
5162

5263
Some links about Sonatype:
@@ -56,6 +67,12 @@ Some links about Sonatype:
5667
* http://central.sonatype.org/pages/apache-maven.html
5768

5869

70+
See the following documentation for details on specifying which gpg to use for
71+
publishing in your local settings.xml:
72+
73+
* https://central.sonatype.org/publish/requirements/gpg/
74+
* https://maven.apache.org/plugins/maven-gpg-plugin/usage.html
75+
5976
## Setting up GPG
6077
You need a key. It is fine to create/use your own, but you'll probably want
6178
one with your MaxMind email address.

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@
174174
<goals>
175175
<goal>sign</goal>
176176
</goals>
177+
<configuration>
178+
<keyname>${gpg.keyname}</keyname>
179+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
180+
</configuration>
177181
</execution>
178182
</executions>
179183
</plugin>

0 commit comments

Comments
 (0)