|
101 | 101 | <url>https://github.com/dev-aspectj/aspectj-maven-plugin</url> |
102 | 102 | </scm> |
103 | 103 |
|
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 | | - |
115 | 104 | <developers> |
116 | 105 | <developer> |
117 | 106 | <id>kriegaex</id> |
|
505 | 494 | </execution> |
506 | 495 | </executions> |
507 | 496 | </plugin> |
| 497 | + <!-- https://central.sonatype.org/publish/publish-portal-maven/ --> |
508 | 498 | <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> |
518 | 502 | <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> |
538 | 503 | </plugin> |
539 | 504 | </plugins> |
540 | 505 | </pluginManagement> |
541 | 506 |
|
542 | 507 | <plugins> |
| 508 | + <plugin> |
| 509 | + <groupId>org.sonatype.central</groupId> |
| 510 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 511 | + </plugin> |
543 | 512 | <plugin> |
544 | 513 | <groupId>org.apache.maven.plugins</groupId> |
545 | 514 | <artifactId>maven-enforcer-plugin</artifactId> |
|
655 | 624 | <groupId>org.apache.maven.plugins</groupId> |
656 | 625 | <artifactId>maven-gpg-plugin</artifactId> |
657 | 626 | </plugin> |
658 | | - <plugin> |
659 | | - <groupId>org.sonatype.plugins</groupId> |
660 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
661 | | - </plugin> |
662 | 627 | <plugin> |
663 | 628 | <groupId>org.apache.maven.plugins</groupId> |
664 | 629 | <artifactId>maven-source-plugin</artifactId> |
|
0 commit comments