|
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 |
|
| 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> |
314 | 315 | <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id>
|
315 | 316 | <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> |
317 | 317 | <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
|
318 | 318 | <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
|
319 | 319 |
|
|
322 | 322 | Specific modules will override the setting at their own level.
|
323 | 323 | -->
|
324 | 324 | <deploy.skip>true</deploy.skip>
|
325 |
| - <maven-deploy-plugin.skip>true</maven-deploy-plugin.skip> |
326 | 325 |
|
327 | 326 | <!-- Can be overridden by subprojects if dependency convergence cannot be achieved -->
|
328 | 327 | <enforcer.dependencyconvergence.skip>false</enforcer.dependencyconvergence.skip>
|
|
554 | 553 | </executions>
|
555 | 554 | </plugin>
|
556 | 555 | <!-- 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 | 556 | <plugin>
|
567 | 557 | <groupId>org.apache.maven.plugins</groupId>
|
568 | 558 | <artifactId>maven-deploy-plugin</artifactId>
|
569 | 559 | <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> |
| 560 | + <configuration> |
| 561 | + <skip>${deploy.skip}</skip> |
| 562 | + </configuration> |
590 | 563 | </plugin>
|
591 | 564 | <!-- Public BOM will be flattened too, so we manage this plugin in the root pom. -->
|
592 | 565 | <plugin>
|
|
1068 | 1041 | </plugins>
|
1069 | 1042 | </pluginManagement>
|
1070 | 1043 | <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 | 1044 | <plugin>
|
1110 | 1045 | <groupId>org.apache.maven.plugins</groupId>
|
1111 | 1046 | <artifactId>maven-compiler-plugin</artifactId>
|
|
1301 | 1236 | <javadoc.generate.jar.phase>prepare-package</javadoc.generate.jar.phase>
|
1302 | 1237 | </properties>
|
1303 | 1238 | <build>
|
1304 |
| - <plugins> |
1305 |
| - <plugin> |
1306 |
| - <groupId>org.apache.maven.plugins</groupId> |
1307 |
| - <artifactId>maven-gpg-plugin</artifactId> |
1308 |
| - </plugin> |
1309 |
| - </plugins> |
| 1239 | + <pluginManagement> |
| 1240 | + <plugins> |
| 1241 | + <plugin> |
| 1242 | + <artifactId>maven-deploy-plugin</artifactId> |
| 1243 | + <configuration> |
| 1244 | + <altReleaseDeploymentRepository>${local.staging.releases.repo.id}::${local.staging.releases.repo.url}</altReleaseDeploymentRepository> |
| 1245 | + </configuration> |
| 1246 | + </plugin> |
| 1247 | + </plugins> |
| 1248 | + </pluginManagement> |
1310 | 1249 | </build>
|
1311 | 1250 | </profile>
|
1312 | 1251 |
|
|
1788 | 1727 | -->
|
1789 | 1728 | <id>reproducibility-check</id>
|
1790 | 1729 | <properties>
|
1791 |
| - <maven-deploy-plugin.skip>false</maven-deploy-plugin.skip> |
1792 | 1730 | <maven.javadoc.skip>true</maven.javadoc.skip>
|
1793 | 1731 | <skipTests>true</skipTests>
|
1794 |
| - <gpg.skip>true</gpg.skip> |
1795 | 1732 | </properties>
|
1796 | 1733 | </profile>
|
1797 | 1734 |
|
|
0 commit comments