Skip to content

Commit c5414c8

Browse files
committed
fixes #71 switch to maven central portal for publishing
1 parent 724090a commit c5414c8

File tree

1 file changed

+18
-50
lines changed

1 file changed

+18
-50
lines changed

pom.xml

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,42 +52,16 @@
5252
</scm>
5353

5454
<distributionManagement>
55-
<snapshotRepository>
56-
<id>ossrh</id>
57-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
58-
</snapshotRepository>
59-
<repository>
60-
<id>ossrh</id>
61-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
62-
</repository>
55+
<repository>
56+
<id>central</id>
57+
<url>https://central.sonatype.com/service/local/staging/deploy/maven2/</url>
58+
</repository>
59+
<snapshotRepository>
60+
<id>central</id>
61+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
62+
</snapshotRepository>
6363
</distributionManagement>
6464

65-
<repositories>
66-
<repository>
67-
<id>central</id>
68-
<url>
69-
https://oss.sonatype.org/content/repositories/releases
70-
</url>
71-
<snapshots>
72-
<enabled>false</enabled>
73-
</snapshots>
74-
</repository>
75-
<repository>
76-
<id>snapshots</id>
77-
<url>
78-
https://oss.sonatype.org/content/repositories/snapshots
79-
</url>
80-
<snapshots>
81-
<enabled>true</enabled>
82-
<!-- never, daily, interval:X (where X is in minutes) or always -->
83-
<!--<updatePolicy>daily</updatePolicy> -->
84-
</snapshots>
85-
<releases>
86-
<enabled>false</enabled>
87-
</releases>
88-
</repository>
89-
</repositories>
90-
9165
<properties>
9266
<java.version>11</java.version>
9367
<maven.compiler.source>${java.version}</maven.compiler.source>
@@ -199,17 +173,6 @@
199173
</execution>
200174
</executions>
201175
</plugin>
202-
<plugin>
203-
<groupId>org.sonatype.plugins</groupId>
204-
<artifactId>nexus-staging-maven-plugin</artifactId>
205-
<version>${version.nexus-staging-maven}</version>
206-
<extensions>true</extensions>
207-
<configuration>
208-
<serverId>ossrh</serverId>
209-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
210-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
211-
</configuration>
212-
</plugin>
213176
<plugin>
214177
<groupId>org.apache.maven.plugins</groupId>
215178
<artifactId>maven-source-plugin</artifactId>
@@ -284,11 +247,6 @@
284247
</executions>
285248
</plugin>
286249
<!-- end JACOCO -->
287-
<plugin>
288-
<groupId>org.apache.maven.plugins</groupId>
289-
<artifactId>maven-deploy-plugin</artifactId>
290-
<version>2.8.2</version>
291-
</plugin>
292250
</plugins>
293251
</build>
294252

@@ -327,6 +285,16 @@
327285
</execution>
328286
</executions>
329287
</plugin>
288+
<plugin>
289+
<groupId>org.sonatype.central</groupId>
290+
<artifactId>central-publishing-maven-plugin</artifactId>
291+
<version>0.7.0</version>
292+
<extensions>true</extensions>
293+
<configuration>
294+
<publishingServerId>central</publishingServerId>
295+
<autoPublish>true</autoPublish>
296+
</configuration>
297+
</plugin>
330298
</plugins>
331299
</build>
332300
</profile>

0 commit comments

Comments
 (0)