Skip to content

Commit 3805440

Browse files

File tree

1 file changed

+8
-43
lines changed

1 file changed

+8
-43
lines changed

pom.xml

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,6 @@
101101
<url>https://github.com/dev-aspectj/aspectj-maven-plugin</url>
102102
</scm>
103103

104-
<distributionManagement>
105-
<snapshotRepository>
106-
<id>ossrh-s01</id>
107-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
108-
</snapshotRepository>
109-
<repository>
110-
<id>ossrh-s01</id>
111-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
112-
</repository>
113-
</distributionManagement>
114-
115104
<developers>
116105
<developer>
117106
<id>kriegaex</id>
@@ -505,41 +494,21 @@
505494
</execution>
506495
</executions>
507496
</plugin>
497+
<!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
508498
<plugin>
509-
<!--
510-
Other than Maven Deploy, this plugin cannot just be added to the 'build/plugins' section of the parent POM
511-
once and (de-)activated with a simple property like 'maven.deploy.skip' on a per-module basis. See also
512-
https://issues.sonatype.org/browse/OSSRH-68966. Consequently, we do not add it to the parent but separately
513-
to each module meant to be published.
514-
-->
515-
<groupId>org.sonatype.plugins</groupId>
516-
<artifactId>nexus-staging-maven-plugin</artifactId>
517-
<version>1.6.8</version>
499+
<groupId>org.sonatype.central</groupId>
500+
<artifactId>central-publishing-maven-plugin</artifactId>
501+
<version>0.7.0</version>
518502
<extensions>true</extensions>
519-
<configuration>
520-
<serverId>ossrh-s01</serverId>
521-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
522-
<!-- Activate in order to directly release to Maven Central after successful staging -->
523-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
524-
</configuration>
525-
<dependencies>
526-
<!--
527-
Plugin version 1.6.8 does not work on JDK 16+ without special MAVEN_OPTS opening certain modules,
528-
because the XStream version used needs it. One workaround is to use a more recent XStream version.
529-
Attention: Do *not* upgrade to e.g. 1.4.18, because it causes exceptions during deployment.
530-
TODO: remove plugin dependency after OSSRH-66257, NEXUS-26993 are fixed.
531-
-->
532-
<dependency>
533-
<groupId>com.thoughtworks.xstream</groupId>
534-
<artifactId>xstream</artifactId>
535-
<version>1.4.15</version>
536-
</dependency>
537-
</dependencies>
538503
</plugin>
539504
</plugins>
540505
</pluginManagement>
541506

542507
<plugins>
508+
<plugin>
509+
<groupId>org.sonatype.central</groupId>
510+
<artifactId>central-publishing-maven-plugin</artifactId>
511+
</plugin>
543512
<plugin>
544513
<groupId>org.apache.maven.plugins</groupId>
545514
<artifactId>maven-enforcer-plugin</artifactId>
@@ -655,10 +624,6 @@
655624
<groupId>org.apache.maven.plugins</groupId>
656625
<artifactId>maven-gpg-plugin</artifactId>
657626
</plugin>
658-
<plugin>
659-
<groupId>org.sonatype.plugins</groupId>
660-
<artifactId>nexus-staging-maven-plugin</artifactId>
661-
</plugin>
662627
<plugin>
663628
<groupId>org.apache.maven.plugins</groupId>
664629
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)