Skip to content

Commit dc6a5a9

Browse files
fix: configure maven plugin to publish to new maven-central (#1803)
1 parent dcddcda commit dc6a5a9

2 files changed

Lines changed: 10 additions & 18 deletions

File tree

maven/pom.xml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -254,29 +254,21 @@
254254
</executions>
255255
</plugin>
256256
<plugin>
257-
<groupId>org.sonatype.plugins</groupId>
258-
<artifactId>nexus-staging-maven-plugin</artifactId>
259-
<version>1.7.0</version>
257+
<groupId>org.sonatype.central</groupId>
258+
<artifactId>central-publishing-maven-plugin</artifactId>
259+
<version>0.8.0</version>
260260
<extensions>true</extensions>
261261
<configuration>
262-
<serverId>ossrh</serverId>
263-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
264-
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
265-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
262+
<publishingServerId>central</publishingServerId>
263+
<autoPublish>true</autoPublish>
266264
</configuration>
267265
</plugin>
268266
<plugin>
269267
<artifactId>maven-deploy-plugin</artifactId>
270268
<version>3.1.4</version>
271-
<executions>
272-
<execution>
273-
<id>default-deploy</id>
274-
<phase>deploy</phase>
275-
<goals>
276-
<goal>deploy</goal>
277-
</goals>
278-
</execution>
279-
</executions>
269+
<configuration>
270+
<skip>true</skip>
271+
</configuration>
280272
</plugin>
281273
</plugins>
282274
</build>

maven/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
22
<servers>
33
<server>
4-
<id>ossrh</id>
4+
<id>central</id>
55
<username>${env.SONATYPE_USERNAME}</username>
66
<password>${env.SONATYPE_PASSWORD}</password>
77
</server>
88
</servers>
9-
</settings>
9+
</settings>

0 commit comments

Comments
 (0)