Skip to content

Commit 7ca0660

Browse files
committed
Switch from OSSRH to Maven Publisher API.
Closes #917
1 parent 2bbeb95 commit 7ca0660

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

pom.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<groupId>org.springframework.vault</groupId>
@@ -54,7 +56,7 @@
5456
<doc.resources>${project.build.directory}/doc-resources</doc.resources>
5557

5658
<!-- To be overridden by individual modules -->
57-
<java-module-name />
59+
<java-module-name/>
5860
</properties>
5961

6062
<inceptionYear>2016</inceptionYear>
@@ -676,6 +678,13 @@
676678
<version>1.7.0</version>
677679
</plugin>
678680

681+
<plugin>
682+
<groupId>org.sonatype.central</groupId>
683+
<artifactId>central-publishing-maven-plugin</artifactId>
684+
<version>0.7.0</version>
685+
<extensions>true</extensions>
686+
</plugin>
687+
679688
</plugins>
680689
</pluginManagement>
681690
</build>
@@ -744,13 +753,13 @@
744753

745754
</plugins>
746755
</build>
747-
748756
</profile>
749757

750758
<profile>
751759
<id>release</id>
752760
<build>
753761
<plugins>
762+
754763
<plugin>
755764
<groupId>org.apache.maven.plugins</groupId>
756765
<artifactId>maven-release-plugin</artifactId>
@@ -802,6 +811,7 @@
802811
</dependency>
803812
</dependencies>
804813
</plugin>
814+
805815
</plugins>
806816
</build>
807817
</profile>
@@ -843,20 +853,9 @@
843853

844854
<id>central</id>
845855

846-
<distributionManagement>
847-
<snapshotRepository>
848-
<id>sonatype-nexus-snapshots</id>
849-
<name>Sonatype Nexus Snapshots</name>
850-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/
851-
</url>
852-
</snapshotRepository>
853-
<repository>
854-
<id>sonatype-nexus-staging</id>
855-
<name>Nexus Release Repository</name>
856-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
857-
</url>
858-
</repository>
859-
</distributionManagement>
856+
<properties>
857+
<skipTests>true</skipTests>
858+
</properties>
860859

861860
<build>
862861
<plugins>
@@ -888,20 +887,28 @@
888887
</executions>
889888
</plugin>
890889

890+
<plugin>
891+
<groupId>org.sonatype.central</groupId>
892+
<artifactId>central-publishing-maven-plugin</artifactId>
893+
<configuration>
894+
<deploymentName>Spring Vault ${project.version}</deploymentName>
895+
<publishingServerId>central</publishingServerId>
896+
<autoPublish>true</autoPublish>
897+
</configuration>
898+
</plugin>
899+
891900
</plugins>
892901
</build>
893902

894903
</profile>
895904

896905
<profile>
897-
898906
<!--
899907
Profile to be activated when building the distribution artifacts.
900908
901909
Generates reference documentation, aggregates JavaDoc etc. Has to be combined with
902910
profiles "release" or "milestone" to deploy artifacts into the appropriate places.
903911
-->
904-
905912
<id>distribute</id>
906913

907914
<properties>
@@ -911,11 +918,7 @@
911918
</properties>
912919

913920
<build>
914-
915921
<plugins>
916-
<!--
917-
Configures JavaDoc generation.
918-
-->
919922

920923
<plugin>
921924
<groupId>org.apache.maven.plugins</groupId>
@@ -987,14 +990,11 @@
987990
</pluginManagement>
988991

989992
<plugins>
990-
991993
<plugin>
992994
<groupId>org.jfrog.buildinfo</groupId>
993995
<artifactId>artifactory-maven-plugin</artifactId>
994996
</plugin>
995-
996997
</plugins>
997-
998998
</build>
999999
</profile>
10001000
<profile>

settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<password>${env.ARTIFACTORY_PSW}</password>
2626
</server>
2727
<server>
28-
<id>sonatype-nexus-staging</id>
29-
<username>${env.SONATYPE_USR}</username>
30-
<password>${env.SONATYPE_PSW}</password>
28+
<id>central</id>
29+
<username>${env.CENTRAL_TOKEN_USERNAME}</username>
30+
<password>${env.CENTRAL_TOKEN_PASSWORD}</password>
3131
</server>
3232
</servers>
3333

0 commit comments

Comments
 (0)