Skip to content

Commit 7dd2789

Browse files
committed
fixes #136 switch to maven central portal for publishin
1 parent cc269c2 commit 7dd2789

File tree

1 file changed

+18
-26
lines changed

1 file changed

+18
-26
lines changed

pom.xml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@
3636
</scm>
3737

3838
<distributionManagement>
39-
<snapshotRepository>
40-
<id>ossrh</id>
41-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
42-
</snapshotRepository>
4339
<repository>
44-
<id>ossrh</id>
45-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
40+
<id>central</id>
41+
<url>https://central.sonatype.com/service/local/staging/deploy/maven2/</url>
4642
</repository>
43+
<snapshotRepository>
44+
<id>central</id>
45+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
46+
</snapshotRepository>
4747
</distributionManagement>
4848

4949
<repositories>
5050
<repository>
5151
<id>central</id>
5252
<url>
53-
https://oss.sonatype.org/content/repositories/releases
53+
https://central.sonatype.org/content/repositories/releases
5454
</url>
5555
<snapshots>
5656
<enabled>false</enabled>
@@ -59,12 +59,10 @@
5959
<repository>
6060
<id>snapshots</id>
6161
<url>
62-
https://oss.sonatype.org/content/repositories/snapshots
62+
https://central.sonatype.org/content/repositories/snapshots
6363
</url>
6464
<snapshots>
6565
<enabled>true</enabled>
66-
<!-- never, daily, interval:X (where X is in minutes) or always -->
67-
<!--<updatePolicy>daily</updatePolicy> -->
6866
</snapshots>
6967
<releases>
7068
<enabled>false</enabled>
@@ -399,17 +397,6 @@
399397
</archive>
400398
</configuration>
401399
</plugin>
402-
<plugin>
403-
<groupId>org.sonatype.plugins</groupId>
404-
<artifactId>nexus-staging-maven-plugin</artifactId>
405-
<version>${version.nexus-staging-maven}</version>
406-
<extensions>true</extensions>
407-
<configuration>
408-
<serverId>ossrh</serverId>
409-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
410-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
411-
</configuration>
412-
</plugin>
413400
<plugin>
414401
<groupId>org.apache.maven.plugins</groupId>
415402
<artifactId>maven-shade-plugin</artifactId>
@@ -521,11 +508,6 @@
521508
</arguments>
522509
</configuration>
523510
</plugin>
524-
<plugin>
525-
<groupId>org.apache.maven.plugins</groupId>
526-
<artifactId>maven-deploy-plugin</artifactId>
527-
<version>${version.maven-deploy}</version>
528-
</plugin>
529511
</plugins>
530512
</build>
531513
<profiles>
@@ -559,6 +541,16 @@
559541
</execution>
560542
</executions>
561543
</plugin>
544+
<plugin>
545+
<groupId>org.sonatype.central</groupId>
546+
<artifactId>central-publishing-maven-plugin</artifactId>
547+
<version>0.7.0</version>
548+
<extensions>true</extensions>
549+
<configuration>
550+
<publishingServerId>central</publishingServerId>
551+
<autoPublish>true</autoPublish>
552+
</configuration>
553+
</plugin>
562554
</plugins>
563555
</build>
564556
</profile>

0 commit comments

Comments
 (0)