Skip to content

Commit fa82ed2

Browse files
committed
Use nexus-staging-maven-plugin
1 parent a189eb2 commit fa82ed2

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

README.dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Steps for releasing:
3030
* It may prompt you about out of date dependencies. You should consider
3131
updating them if appropriate. Say no and review the changes and upate
3232
`pom.xml` and start the release process over again if you do.
33-
7. Complete the release on Sonatype
33+
7. The `nexus-staging-maven-plugin` will automatically promote the release on Sonatype.
3434

3535
There is more information in the
3636
[minfraud-api-java](https://github.com/maxmind/minfraud-api-java/blob/main/README.dev.md)

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,26 @@
231231
<artifactId>versions-maven-plugin</artifactId>
232232
<version>2.16.1</version>
233233
</plugin>
234+
<plugin>
235+
<groupId>org.sonatype.plugins</groupId>
236+
<artifactId>nexus-staging-maven-plugin</artifactId>
237+
<version>1.6.13</version>
238+
<extensions>true</extensions>
239+
<configuration>
240+
<serverId>sonatype-nexus-staging</serverId>
241+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
242+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
243+
</configuration>
244+
<executions>
245+
<execution>
246+
<id>default-deploy</id>
247+
<phase>deploy</phase>
248+
<goals>
249+
<goal>deploy</goal>
250+
</goals>
251+
</execution>
252+
</executions>
253+
</plugin>
234254
</plugins>
235255
</build>
236256
<profiles>
@@ -251,4 +271,10 @@
251271
</build>
252272
</profile>
253273
</profiles>
274+
<distributionManagement>
275+
<repository>
276+
<id>sonatype-nexus-staging</id>
277+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
278+
</repository>
279+
</distributionManagement>
254280
</project>

0 commit comments

Comments
 (0)