Skip to content

Commit f21bf84

Browse files
committed
add distributionManagement for maven central deployment + upgrade dependency nexus-staging-maven-plugin to 1.6.3
1 parent 0bc3eeb commit f21bf84

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pom.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@
8383
<profiles>
8484
<profile>
8585
<id>publishing</id>
86+
87+
<distributionManagement>
88+
<snapshotRepository>
89+
<id>ossrh</id>
90+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
91+
</snapshotRepository>
92+
</distributionManagement>
93+
8694
<build>
8795
<plugins>
8896
<plugin>
@@ -102,14 +110,16 @@
102110
<plugin>
103111
<groupId>org.sonatype.plugins</groupId>
104112
<artifactId>nexus-staging-maven-plugin</artifactId>
105-
<version>1.5.1</version>
113+
<version>1.6.3</version>
106114
<extensions>true</extensions>
107115
<configuration>
108-
<serverId>sonatype-nexus-staging</serverId>
109-
<nexusUrl>https://oss.sonatype.org</nexusUrl>
116+
<serverId>ossrh</serverId>
117+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
118+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
110119
</configuration>
111120
</plugin>
112-
</plugins>
121+
122+
</plugins>
113123
</build>
114124
</profile>
115125
</profiles>

0 commit comments

Comments
 (0)