Skip to content

Commit 275197f

Browse files
committed
Maven changes necessary to publish to Sonatype Central Portal (#50)
1 parent 9564bcc commit 275197f

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

pom.xml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@
9797
<artifactId>maven-javadoc-plugin</artifactId>
9898
<version>3.2.0</version>
9999
</plugin>
100-
<plugin>
101-
<groupId>org.sonatype.plugins</groupId>
102-
<artifactId>nexus-staging-maven-plugin</artifactId>
103-
<version>1.6.8</version>
104-
</plugin>
105100
<plugin>
106101
<artifactId>maven-gpg-plugin</artifactId>
107102
<version>1.6</version>
@@ -114,6 +109,11 @@
114109
<artifactId>maven-deploy-plugin</artifactId>
115110
<version>2.8.2</version>
116111
</plugin>
112+
<plugin>
113+
<groupId>org.sonatype.central</groupId>
114+
<artifactId>central-publishing-maven-plugin</artifactId>
115+
<version>0.7.0</version>
116+
</plugin>
117117
</plugins>
118118
</pluginManagement>
119119
<plugins>
@@ -230,17 +230,6 @@ limitations under the License.]]>
230230
</properties>
231231
</configuration>
232232
</plugin>
233-
<plugin>
234-
<groupId>org.sonatype.plugins</groupId>
235-
<artifactId>nexus-staging-maven-plugin</artifactId>
236-
<extensions>true</extensions>
237-
<configuration>
238-
<serverId>ossrh</serverId>
239-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
240-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
241-
<skipLocalStaging>true</skipLocalStaging>
242-
</configuration>
243-
</plugin>
244233
<plugin>
245234
<artifactId>maven-javadoc-plugin</artifactId>
246235
<configuration>
@@ -282,6 +271,16 @@ limitations under the License.]]>
282271
</instructions>
283272
</configuration>
284273
</plugin>
274+
<plugin>
275+
<groupId>org.sonatype.central</groupId>
276+
<artifactId>central-publishing-maven-plugin</artifactId>
277+
<extensions>true</extensions>
278+
<configuration>
279+
<publishingServerId>central</publishingServerId>
280+
<checksums>all</checksums>
281+
<autoPublish>false</autoPublish>
282+
</configuration>
283+
</plugin>
285284
</plugins>
286285
</build>
287286
<profiles>
@@ -305,12 +304,6 @@ limitations under the License.]]>
305304
</build>
306305
</profile>
307306
</profiles>
308-
<distributionManagement>
309-
<repository>
310-
<id>ossrh</id>
311-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
312-
</repository>
313-
</distributionManagement>
314307
<licenses>
315308
<license>
316309
<name>Apache 2</name>

0 commit comments

Comments
 (0)