|
270 | 270 | <version.enforcer.plugin>3.5.0</version.enforcer.plugin>
|
271 | 271 | <version.project-info.plugin>3.9.0</version.project-info.plugin>
|
272 | 272 | <version.japicmp.plugin>0.23.1</version.japicmp.plugin>
|
273 |
| - <version.nexus-staging.plugin>1.7.0</version.nexus-staging.plugin> |
274 | 273 | <version.deploy.plugin>3.1.4</version.deploy.plugin>
|
275 |
| - <version.gpg.plugin>3.2.7</version.gpg.plugin> |
276 | 274 | <version.flatten-maven-plugin>1.7.0</version.flatten-maven-plugin>
|
277 | 275 | <version.assembly.plugin>3.7.1</version.assembly.plugin>
|
278 | 276 | <version.buildhelper.plugin>3.6.0</version.buildhelper.plugin>
|
|
316 | 314 | <version.spotless-maven-plugin>2.44.4</version.spotless-maven-plugin>
|
317 | 315 | <version.maven-antrun-plugin>3.1.0</version.maven-antrun-plugin>
|
318 | 316 |
|
319 |
| - <!-- Repository Deployment URLs --> |
320 |
| - |
321 |
| - <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
322 |
| - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.releases.repo.url> |
323 |
| - <ossrh.releases.repo.baseUrl>https://oss.sonatype.org/</ossrh.releases.repo.baseUrl> |
324 |
| - <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id> |
325 |
| - <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url> |
326 |
| - |
327 | 317 | <!--
|
328 | 318 | We don't want to publish or sign any modules by default.
|
329 | 319 | Specific modules will override the setting at their own level.
|
330 | 320 | -->
|
331 | 321 | <deploy.skip>true</deploy.skip>
|
332 |
| - <maven-deploy-plugin.skip>true</maven-deploy-plugin.skip> |
| 322 | + <!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: --> |
| 323 | + <altDeploymentRepository>local::file:${maven.multiModuleProjectDirectory}/target/staging-deploy/maven</altDeploymentRepository> |
333 | 324 |
|
334 | 325 | <!-- Can be overridden by subprojects if dependency convergence cannot be achieved -->
|
335 | 326 | <enforcer.dependencyconvergence.skip>false</enforcer.dependencyconvergence.skip>
|
|
555 | 546 | </executions>
|
556 | 547 | </plugin>
|
557 | 548 | <!-- We want to deploy the public BOM, so we manage this plugin in the root pom. -->
|
558 |
| - <plugin> |
559 |
| - <groupId>org.sonatype.plugins</groupId> |
560 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
561 |
| - <version>${version.nexus-staging.plugin}</version> |
562 |
| - <configuration> |
563 |
| - <skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo> |
564 |
| - </configuration> |
565 |
| - </plugin> |
566 |
| - <!-- We want to disable this plugin as soon as possible, hence we manage it in the root pom. --> |
567 | 549 | <plugin>
|
568 | 550 | <groupId>org.apache.maven.plugins</groupId>
|
569 | 551 | <artifactId>maven-deploy-plugin</artifactId>
|
570 | 552 | <version>${version.deploy.plugin}</version>
|
571 |
| - </plugin> |
572 |
| - <!-- Public BOM must be also signed, so we manage this plugin in the root pom. --> |
573 |
| - <plugin> |
574 |
| - <groupId>org.apache.maven.plugins</groupId> |
575 |
| - <artifactId>maven-gpg-plugin</artifactId> |
576 |
| - <version>${version.gpg.plugin}</version> |
577 |
| - <executions> |
578 |
| - <execution> |
579 |
| - <id>sign-artifacts</id> |
580 |
| - <phase>verify</phase> |
581 |
| - <goals> |
582 |
| - <goal>sign</goal> |
583 |
| - </goals> |
584 |
| - <configuration> |
585 |
| - <skip>${deploy.skip}</skip> |
586 |
| - <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
587 |
| - <bestPractices>true</bestPractices> |
588 |
| - </configuration> |
589 |
| - </execution> |
590 |
| - </executions> |
| 553 | + <configuration> |
| 554 | + <skip>${deploy.skip}</skip> |
| 555 | + </configuration> |
591 | 556 | </plugin>
|
592 | 557 | <!-- Public BOM will be flattened too, so we manage this plugin in the root pom. -->
|
593 | 558 | <plugin>
|
|
1140 | 1105 | </plugins>
|
1141 | 1106 | </pluginManagement>
|
1142 | 1107 | <plugins>
|
1143 |
| - <!-- Skip the deploy plugin explicitly: we use nexus-staging-maven-plugin instead --> |
1144 | 1108 | <plugin>
|
1145 | 1109 | <groupId>org.apache.maven.plugins</groupId>
|
1146 | 1110 | <artifactId>maven-deploy-plugin</artifactId>
|
1147 |
| - <configuration> |
1148 |
| - <skip>${maven-deploy-plugin.skip}</skip> |
1149 |
| - </configuration> |
1150 |
| - </plugin> |
1151 |
| - <!-- |
1152 |
| - Configure the nexus-staging-maven-plugin explicitly (without <extension>true</extension>) |
1153 |
| - in order to work around a problem in the "reports" module (see that module's POM for more info). |
1154 |
| - --> |
1155 |
| - <plugin> |
1156 |
| - <groupId>org.sonatype.plugins</groupId> |
1157 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
1158 |
| - <extensions>false</extensions><!-- This is essential: do not put true here --> |
1159 |
| - <configuration> |
1160 |
| - <serverId>${ossrh.releases.repo.id}</serverId> |
1161 |
| - <!-- The following, by default, is only used for actual releases, not for snapshot deployments --> |
1162 |
| - <nexusUrl>${ossrh.releases.repo.baseUrl}</nexusUrl> |
1163 |
| - <!-- oss.sonatype.org has been very slow when closing repositories lately; |
1164 |
| - let's raise the timeout until we switch to s01.sonatype.org --> |
1165 |
| - <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> |
1166 |
| - </configuration> |
1167 |
| - <executions> |
1168 |
| - <execution> |
1169 |
| - <id>default-deploy</id> |
1170 |
| - <phase>deploy</phase> |
1171 |
| - <goals> |
1172 |
| - <!-- |
1173 |
| - This will only put artifacts in a staging directory. |
1174 |
| - See the "reports" module for actual deployment, at the end of the build. |
1175 |
| - --> |
1176 |
| - <goal>deploy</goal> |
1177 |
| - </goals> |
1178 |
| - </execution> |
1179 |
| - </executions> |
1180 | 1111 | </plugin>
|
1181 | 1112 | <plugin>
|
1182 | 1113 | <groupId>org.apache.maven.plugins</groupId>
|
|
1249 | 1180 | </plugins>
|
1250 | 1181 | </build>
|
1251 | 1182 |
|
1252 |
| - <distributionManagement> |
1253 |
| - <repository> |
1254 |
| - <id>${ossrh.releases.repo.id}</id> |
1255 |
| - <name>OSSRH Releases Repository</name> |
1256 |
| - <url>${ossrh.releases.repo.url}</url> |
1257 |
| - </repository> |
1258 |
| - <snapshotRepository> |
1259 |
| - <id>${ossrh.snapshots.repo.id}</id> |
1260 |
| - <name>OSSRH Snapshots Repository</name> |
1261 |
| - <url>${ossrh.snapshots.repo.url}</url> |
1262 |
| - </snapshotRepository> |
1263 |
| - </distributionManagement> |
1264 |
| - |
1265 | 1183 | <reporting>
|
1266 | 1184 | <plugins>
|
1267 | 1185 | <plugin>
|
|
1347 | 1265 | <!-- We want this execution to happen before moditect (which executes at package phase) -->
|
1348 | 1266 | <javadoc.generate.jar.phase>prepare-package</javadoc.generate.jar.phase>
|
1349 | 1267 | </properties>
|
1350 |
| - <build> |
1351 |
| - <plugins> |
1352 |
| - <plugin> |
1353 |
| - <groupId>org.apache.maven.plugins</groupId> |
1354 |
| - <artifactId>maven-gpg-plugin</artifactId> |
1355 |
| - </plugin> |
1356 |
| - </plugins> |
1357 |
| - </build> |
1358 | 1268 | </profile>
|
1359 | 1269 |
|
1360 | 1270 | <profile>
|
|
1800 | 1710 | -->
|
1801 | 1711 | <id>reproducibility-check</id>
|
1802 | 1712 | <properties>
|
1803 |
| - <maven-deploy-plugin.skip>false</maven-deploy-plugin.skip> |
1804 | 1713 | <maven.javadoc.skip>true</maven.javadoc.skip>
|
1805 | 1714 | <skipTests>true</skipTests>
|
1806 |
| - <gpg.skip>true</gpg.skip> |
1807 | 1715 | </properties>
|
1808 | 1716 | </profile>
|
1809 | 1717 |
|
|
0 commit comments