|
267 | 267 | <version.enforcer.plugin>3.5.0</version.enforcer.plugin>
|
268 | 268 | <version.project-info.plugin>3.6.2</version.project-info.plugin>
|
269 | 269 | <version.japicmp.plugin>0.22.0</version.japicmp.plugin>
|
270 |
| - <version.nexus-staging.plugin>1.7.0</version.nexus-staging.plugin> |
271 | 270 | <version.deploy.plugin>3.1.2</version.deploy.plugin>
|
272 |
| - <version.gpg.plugin>3.2.4</version.gpg.plugin> |
273 | 271 | <version.flatten-maven-plugin>1.6.0</version.flatten-maven-plugin>
|
274 | 272 | <version.assembly.plugin>3.7.1</version.assembly.plugin>
|
275 | 273 | <version.buildhelper.plugin>3.6.0</version.buildhelper.plugin>
|
|
311 | 309 |
|
312 | 310 | <!-- Repository Deployment URLs -->
|
313 | 311 |
|
314 |
| - <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
315 |
| - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.releases.repo.url> |
316 |
| - <ossrh.releases.repo.baseUrl>https://oss.sonatype.org/</ossrh.releases.repo.baseUrl> |
| 312 | + <!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: --> |
| 313 | + <local.staging.releases.repo.id>staging-deploy</local.staging.releases.repo.id> |
| 314 | + <local.staging.releases.repo.url>file:${maven.multiModuleProjectDirectory}/target/staging-deploy/maven</local.staging.releases.repo.url> |
317 | 315 | <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
|
318 | 316 | <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
|
319 | 317 |
|
|
322 | 320 | Specific modules will override the setting at their own level.
|
323 | 321 | -->
|
324 | 322 | <deploy.skip>true</deploy.skip>
|
325 |
| - <maven-deploy-plugin.skip>true</maven-deploy-plugin.skip> |
326 | 323 |
|
327 | 324 | <!-- Can be overridden by subprojects if dependency convergence cannot be achieved -->
|
328 | 325 | <enforcer.dependencyconvergence.skip>false</enforcer.dependencyconvergence.skip>
|
|
554 | 551 | </executions>
|
555 | 552 | </plugin>
|
556 | 553 | <!-- We want to deploy the public BOM, so we manage this plugin in the root pom. -->
|
557 |
| - <plugin> |
558 |
| - <groupId>org.sonatype.plugins</groupId> |
559 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
560 |
| - <version>${version.nexus-staging.plugin}</version> |
561 |
| - <configuration> |
562 |
| - <skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo> |
563 |
| - </configuration> |
564 |
| - </plugin> |
565 |
| - <!-- We want to disable this plugin as soon as possible, hence we manage it in the root pom. --> |
566 | 554 | <plugin>
|
567 | 555 | <groupId>org.apache.maven.plugins</groupId>
|
568 | 556 | <artifactId>maven-deploy-plugin</artifactId>
|
569 | 557 | <version>${version.deploy.plugin}</version>
|
570 |
| - </plugin> |
571 |
| - <!-- Public BOM must be also signed, so we manage this plugin in the root pom. --> |
572 |
| - <plugin> |
573 |
| - <groupId>org.apache.maven.plugins</groupId> |
574 |
| - <artifactId>maven-gpg-plugin</artifactId> |
575 |
| - <version>${version.gpg.plugin}</version> |
576 |
| - <executions> |
577 |
| - <execution> |
578 |
| - <id>sign-artifacts</id> |
579 |
| - <phase>verify</phase> |
580 |
| - <goals> |
581 |
| - <goal>sign</goal> |
582 |
| - </goals> |
583 |
| - <configuration> |
584 |
| - <skip>${deploy.skip}</skip> |
585 |
| - <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
586 |
| - <bestPractices>true</bestPractices> |
587 |
| - </configuration> |
588 |
| - </execution> |
589 |
| - </executions> |
| 558 | + <configuration> |
| 559 | + <skip>${deploy.skip}</skip> |
| 560 | + </configuration> |
590 | 561 | </plugin>
|
591 | 562 | <!-- Public BOM will be flattened too, so we manage this plugin in the root pom. -->
|
592 | 563 | <plugin>
|
|
1068 | 1039 | </plugins>
|
1069 | 1040 | </pluginManagement>
|
1070 | 1041 | <plugins>
|
1071 |
| - <!-- Skip the deploy plugin explicitly: we use nexus-staging-maven-plugin instead --> |
1072 |
| - <plugin> |
1073 |
| - <groupId>org.apache.maven.plugins</groupId> |
1074 |
| - <artifactId>maven-deploy-plugin</artifactId> |
1075 |
| - <configuration> |
1076 |
| - <skip>${maven-deploy-plugin.skip}</skip> |
1077 |
| - </configuration> |
1078 |
| - </plugin> |
1079 |
| - <!-- |
1080 |
| - Configure the nexus-staging-maven-plugin explicitly (without <extension>true</extension>) |
1081 |
| - in order to work around a problem in the "reports" module (see that module's POM for more info). |
1082 |
| - --> |
1083 |
| - <plugin> |
1084 |
| - <groupId>org.sonatype.plugins</groupId> |
1085 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
1086 |
| - <extensions>false</extensions><!-- This is essential: do not put true here --> |
1087 |
| - <configuration> |
1088 |
| - <serverId>${ossrh.releases.repo.id}</serverId> |
1089 |
| - <!-- The following, by default, is only used for actual releases, not for snapshot deployments --> |
1090 |
| - <nexusUrl>${ossrh.releases.repo.baseUrl}</nexusUrl> |
1091 |
| - <!-- oss.sonatype.org has been very slow when closing repositories lately; |
1092 |
| - let's raise the timeout until we switch to s01.sonatype.org --> |
1093 |
| - <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> |
1094 |
| - </configuration> |
1095 |
| - <executions> |
1096 |
| - <execution> |
1097 |
| - <id>default-deploy</id> |
1098 |
| - <phase>deploy</phase> |
1099 |
| - <goals> |
1100 |
| - <!-- |
1101 |
| - This will only put artifacts in a staging directory. |
1102 |
| - See the "reports" module for actual deployment, at the end of the build. |
1103 |
| - --> |
1104 |
| - <goal>deploy</goal> |
1105 |
| - </goals> |
1106 |
| - </execution> |
1107 |
| - </executions> |
1108 |
| - </plugin> |
1109 | 1042 | <plugin>
|
1110 | 1043 | <groupId>org.apache.maven.plugins</groupId>
|
1111 | 1044 | <artifactId>maven-compiler-plugin</artifactId>
|
|
1204 | 1137 |
|
1205 | 1138 | <distributionManagement>
|
1206 | 1139 | <repository>
|
1207 |
| - <id>${ossrh.releases.repo.id}</id> |
1208 |
| - <name>OSSRH Releases Repository</name> |
1209 |
| - <url>${ossrh.releases.repo.url}</url> |
| 1140 | + <id>${local.staging.releases.repo.id}</id> |
| 1141 | + <name>Local Staging Directory Releases Repository</name> |
| 1142 | + <url>${local.staging.releases.repo.url}</url> |
1210 | 1143 | </repository>
|
1211 | 1144 | <snapshotRepository>
|
1212 | 1145 | <id>${ossrh.snapshots.repo.id}</id>
|
|
1300 | 1233 | <!-- We want this execution to happen before moditect (which executes at package phase) -->
|
1301 | 1234 | <javadoc.generate.jar.phase>prepare-package</javadoc.generate.jar.phase>
|
1302 | 1235 | </properties>
|
1303 |
| - <build> |
1304 |
| - <plugins> |
1305 |
| - <plugin> |
1306 |
| - <groupId>org.apache.maven.plugins</groupId> |
1307 |
| - <artifactId>maven-gpg-plugin</artifactId> |
1308 |
| - </plugin> |
1309 |
| - </plugins> |
1310 |
| - </build> |
1311 | 1236 | </profile>
|
1312 | 1237 |
|
1313 | 1238 | <profile>
|
|
1788 | 1713 | -->
|
1789 | 1714 | <id>reproducibility-check</id>
|
1790 | 1715 | <properties>
|
1791 |
| - <maven-deploy-plugin.skip>false</maven-deploy-plugin.skip> |
1792 | 1716 | <maven.javadoc.skip>true</maven.javadoc.skip>
|
1793 | 1717 | <skipTests>true</skipTests>
|
1794 |
| - <gpg.skip>true</gpg.skip> |
1795 | 1718 | </properties>
|
1796 | 1719 | </profile>
|
1797 | 1720 |
|
|
0 commit comments