|
264 | 264 | <version.enforcer.plugin>3.4.0</version.enforcer.plugin>
|
265 | 265 | <version.project-info.plugin>3.5.0</version.project-info.plugin>
|
266 | 266 | <version.japicmp.plugin>0.18.3</version.japicmp.plugin>
|
267 |
| - <version.nexus-staging.plugin>1.6.13</version.nexus-staging.plugin> |
268 | 267 | <version.deploy.plugin>3.1.1</version.deploy.plugin>
|
269 |
| - <version.gpg.plugin>3.1.0</version.gpg.plugin> |
270 | 268 | <version.flatten-maven-plugin>1.5.0</version.flatten-maven-plugin>
|
271 | 269 | <version.assembly.plugin>3.6.0</version.assembly.plugin>
|
272 | 270 | <version.buildhelper.plugin>3.5.0</version.buildhelper.plugin>
|
|
308 | 306 |
|
309 | 307 | <!-- Repository Deployment URLs -->
|
310 | 308 |
|
311 |
| - <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
312 |
| - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.releases.repo.url> |
313 |
| - <ossrh.releases.repo.baseUrl>https://oss.sonatype.org/</ossrh.releases.repo.baseUrl> |
| 309 | + <!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: --> |
| 310 | + <local.staging.releases.repo.id>staging-deploy</local.staging.releases.repo.id> |
| 311 | + <local.staging.releases.repo.url>file:${maven.multiModuleProjectDirectory}/target/staging-deploy/maven</local.staging.releases.repo.url> |
314 | 312 | <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
|
315 | 313 | <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
|
316 | 314 |
|
|
539 | 537 | </executions>
|
540 | 538 | </plugin>
|
541 | 539 | <!-- We want to deploy the public BOM, so we manage this plugin in the root pom. -->
|
542 |
| - <plugin> |
543 |
| - <groupId>org.sonatype.plugins</groupId> |
544 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
545 |
| - <version>${version.nexus-staging.plugin}</version> |
546 |
| - <configuration> |
547 |
| - <skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo> |
548 |
| - </configuration> |
549 |
| - </plugin> |
550 |
| - <!-- We want to disable this plugin as soon as possible, hence we manage it in the root pom. --> |
551 | 540 | <plugin>
|
552 | 541 | <groupId>org.apache.maven.plugins</groupId>
|
553 | 542 | <artifactId>maven-deploy-plugin</artifactId>
|
554 | 543 | <version>${version.deploy.plugin}</version>
|
555 |
| - </plugin> |
556 |
| - <!-- Public BOM must be also signed, so we manage this plugin in the root pom. --> |
557 |
| - <plugin> |
558 |
| - <groupId>org.apache.maven.plugins</groupId> |
559 |
| - <artifactId>maven-gpg-plugin</artifactId> |
560 |
| - <version>${version.gpg.plugin}</version> |
561 |
| - <executions> |
562 |
| - <execution> |
563 |
| - <id>sign-artifacts</id> |
564 |
| - <phase>verify</phase> |
565 |
| - <goals> |
566 |
| - <goal>sign</goal> |
567 |
| - </goals> |
568 |
| - <configuration> |
569 |
| - <skip>${deploy.skip}</skip> |
570 |
| - <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
571 |
| - <bestPractices>true</bestPractices> |
572 |
| - </configuration> |
573 |
| - </execution> |
574 |
| - </executions> |
| 544 | + <configuration> |
| 545 | + <skip>${deploy.skip}</skip> |
| 546 | + </configuration> |
575 | 547 | </plugin>
|
576 | 548 | <!-- Public BOM will be flattened too, so we manage this plugin in the root pom. -->
|
577 | 549 | <plugin>
|
|
1051 | 1023 | </plugins>
|
1052 | 1024 | </pluginManagement>
|
1053 | 1025 | <plugins>
|
1054 |
| - <!-- Skip the deploy plugin explicitly: we use nexus-staging-maven-plugin instead --> |
1055 |
| - <plugin> |
1056 |
| - <groupId>org.apache.maven.plugins</groupId> |
1057 |
| - <artifactId>maven-deploy-plugin</artifactId> |
1058 |
| - <configuration> |
1059 |
| - <skip>true</skip> |
1060 |
| - </configuration> |
1061 |
| - </plugin> |
1062 |
| - <!-- |
1063 |
| - Configure the nexus-staging-maven-plugin explicitly (without <extension>true</extension>) |
1064 |
| - in order to work around a problem in the "reports" module (see that module's POM for more info). |
1065 |
| - --> |
1066 |
| - <plugin> |
1067 |
| - <groupId>org.sonatype.plugins</groupId> |
1068 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
1069 |
| - <extensions>false</extensions><!-- This is essential: do not put true here --> |
1070 |
| - <configuration> |
1071 |
| - <serverId>${ossrh.releases.repo.id}</serverId> |
1072 |
| - <!-- The following, by default, is only used for actual releases, not for snapshot deployments --> |
1073 |
| - <nexusUrl>${ossrh.releases.repo.baseUrl}</nexusUrl> |
1074 |
| - <!-- oss.sonatype.org has been very slow when closing repositories lately; |
1075 |
| - let's raise the timeout until we switch to s01.sonatype.org --> |
1076 |
| - <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> |
1077 |
| - </configuration> |
1078 |
| - <executions> |
1079 |
| - <execution> |
1080 |
| - <id>default-deploy</id> |
1081 |
| - <phase>deploy</phase> |
1082 |
| - <goals> |
1083 |
| - <!-- |
1084 |
| - This will only put artifacts in a staging directory. |
1085 |
| - See the "reports" module for actual deployment, at the end of the build. |
1086 |
| - --> |
1087 |
| - <goal>deploy</goal> |
1088 |
| - </goals> |
1089 |
| - </execution> |
1090 |
| - </executions> |
1091 |
| - </plugin> |
1092 | 1026 | <plugin>
|
1093 | 1027 | <artifactId>exec-maven-plugin</artifactId>
|
1094 | 1028 | <groupId>org.codehaus.mojo</groupId>
|
|
1283 | 1217 |
|
1284 | 1218 | <distributionManagement>
|
1285 | 1219 | <repository>
|
1286 |
| - <id>${ossrh.releases.repo.id}</id> |
1287 |
| - <name>OSSRH Releases Repository</name> |
1288 |
| - <url>${ossrh.releases.repo.url}</url> |
| 1220 | + <id>${local.staging.releases.repo.id}</id> |
| 1221 | + <name>Local Staging Directory Releases Repository</name> |
| 1222 | + <url>${local.staging.releases.repo.url}</url> |
1289 | 1223 | </repository>
|
1290 | 1224 | <snapshotRepository>
|
1291 | 1225 | <id>${ossrh.snapshots.repo.id}</id>
|
|
1379 | 1313 | <!-- We want this execution to happen before moditect (which executes at package phase) -->
|
1380 | 1314 | <javadoc.generate.jar.phase>prepare-package</javadoc.generate.jar.phase>
|
1381 | 1315 | </properties>
|
1382 |
| - <build> |
1383 |
| - <plugins> |
1384 |
| - <plugin> |
1385 |
| - <groupId>org.apache.maven.plugins</groupId> |
1386 |
| - <artifactId>maven-gpg-plugin</artifactId> |
1387 |
| - </plugin> |
1388 |
| - </plugins> |
1389 |
| - </build> |
1390 | 1316 | </profile>
|
1391 | 1317 |
|
1392 | 1318 | <profile>
|
|
0 commit comments