|
246 | 246 | <!-- Note: when updating this version, consider reviewing the list of JDKs the forbidden API plugin is targeting. --> |
247 | 247 | <version.forbiddenapis.plugin>3.9</version.forbiddenapis.plugin> |
248 | 248 | <version.gmavenplus.plugin>4.2.0</version.gmavenplus.plugin> |
249 | | - <version.gpg.plugin>3.2.7</version.gpg.plugin> |
250 | 249 | <version.install.plugin>3.1.4</version.install.plugin> |
251 | 250 | <version.japicmp.plugin>0.23.1</version.japicmp.plugin> |
252 | 251 | <version.jar.plugin>3.4.2</version.jar.plugin> |
|
260 | 259 | <version.surefire.plugin>3.5.3</version.surefire.plugin> |
261 | 260 | <version.surefire.plugin.java-version.asm>9.8</version.surefire.plugin.java-version.asm> |
262 | 261 | <version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin> |
263 | | - <version.nexus-staging-maven-plugin>1.7.0</version.nexus-staging-maven-plugin> |
264 | 262 | <version.flatten-maven-plugin>1.7.0</version.flatten-maven-plugin> |
265 | 263 | <version.moditect.plugin>1.2.2.Final</version.moditect.plugin> |
266 | 264 | <version.sisu-maven-plugin>0.9.0.M3</version.sisu-maven-plugin> |
|
276 | 274 |
|
277 | 275 | <!-- Repository Deployment URLs --> |
278 | 276 |
|
279 | | - <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
280 | | - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.releases.repo.url> |
281 | | - <ossrh.releases.repo.baseUrl>https://oss.sonatype.org/</ossrh.releases.repo.baseUrl> |
| 277 | + <!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: --> |
| 278 | + <local.staging.releases.repo.id>staging-deploy</local.staging.releases.repo.id> |
| 279 | + <local.staging.releases.repo.url>file:${maven.multiModuleProjectDirectory}/target/staging-deploy/maven</local.staging.releases.repo.url> |
282 | 280 | <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id> |
283 | 281 | <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url> |
284 | 282 |
|
|
745 | 743 | </execution> |
746 | 744 | </executions> |
747 | 745 | </plugin> |
748 | | - <!-- |
749 | | - Configure the nexus-staging-maven-plugin explicitly (without <extension>true</extension>) |
750 | | - in order to work around a problem in the "reports" module (see that module's POM for more info). |
751 | | - --> |
752 | | - <plugin> |
753 | | - <groupId>org.sonatype.plugins</groupId> |
754 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
755 | | - <extensions>false</extensions><!-- This is essential: do not put true here --> |
756 | | - <configuration> |
757 | | - <serverId>${ossrh.releases.repo.id}</serverId> |
758 | | - <!-- The following, by default, is only used for actual releases, not for snapshot deployments --> |
759 | | - <nexusUrl>${ossrh.releases.repo.baseUrl}</nexusUrl> |
760 | | - <!-- oss.sonatype.org has been very slow when closing repositories lately; |
761 | | - let's raise the timeout until we switch to s01.sonatype.org --> |
762 | | - <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> |
763 | | - </configuration> |
764 | | - <executions> |
765 | | - <execution> |
766 | | - <id>default-deploy</id> |
767 | | - <phase>deploy</phase> |
768 | | - <goals> |
769 | | - <!-- |
770 | | - This will only put artifacts in a staging directory. |
771 | | - See the "reports" module for actual deployment, at the end of the build. |
772 | | - --> |
773 | | - <goal>deploy</goal> |
774 | | - </goals> |
775 | | - </execution> |
776 | | - </executions> |
777 | | - </plugin> |
778 | 746 | </plugins> |
779 | 747 | <pluginManagement> |
780 | 748 | <plugins> |
|
1199 | 1167 | <version>${version.deploy.plugin}</version> |
1200 | 1168 | <configuration> |
1201 | 1169 | <!-- we use the nexus-staging plugin --> |
1202 | | - <skip>${maven-deploy-plugin.skip}</skip> |
| 1170 | + <skip>${deploy.skip}</skip> |
1203 | 1171 | </configuration> |
1204 | 1172 | </plugin> |
1205 | | - <plugin> |
1206 | | - <artifactId>maven-gpg-plugin</artifactId> |
1207 | | - <version>${version.gpg.plugin}</version> |
1208 | | - </plugin> |
1209 | 1173 | <plugin> |
1210 | 1174 | <artifactId>maven-resources-plugin</artifactId> |
1211 | 1175 | <version>${version.resources.plugin}</version> |
|
1563 | 1527 | <artifactId>versions-maven-plugin</artifactId> |
1564 | 1528 | <version>${version.versions.plugin}</version> |
1565 | 1529 | </plugin> |
1566 | | - <plugin> |
1567 | | - <groupId>org.sonatype.plugins</groupId> |
1568 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
1569 | | - <version>${version.nexus-staging-maven-plugin}</version> |
1570 | | - <configuration> |
1571 | | - <skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo> |
1572 | | - </configuration> |
1573 | | - </plugin> |
1574 | 1530 | <plugin> |
1575 | 1531 | <groupId>org.apache.maven.plugins</groupId> |
1576 | 1532 | <artifactId>maven-wrapper-plugin</artifactId> |
|
1639 | 1595 |
|
1640 | 1596 | <distributionManagement> |
1641 | 1597 | <repository> |
1642 | | - <id>${ossrh.releases.repo.id}</id> |
1643 | | - <name>OSSRH Releases Repository</name> |
1644 | | - <url>${ossrh.releases.repo.url}</url> |
| 1598 | + <id>${local.staging.releases.repo.id}</id> |
| 1599 | + <name>Local Staging Directory Releases Repository</name> |
| 1600 | + <url>${local.staging.releases.repo.url}</url> |
1645 | 1601 | </repository> |
1646 | 1602 | <snapshotRepository> |
1647 | 1603 | <id>${ossrh.snapshots.repo.id}</id> |
|
1700 | 1656 | </execution> |
1701 | 1657 | </executions> |
1702 | 1658 | </plugin> |
1703 | | - <plugin> |
1704 | | - <groupId>org.apache.maven.plugins</groupId> |
1705 | | - <artifactId>maven-gpg-plugin</artifactId> |
1706 | | - <executions> |
1707 | | - <execution> |
1708 | | - <id>sign-artifacts</id> |
1709 | | - <phase>verify</phase> |
1710 | | - <goals> |
1711 | | - <goal>sign</goal> |
1712 | | - </goals> |
1713 | | - <configuration> |
1714 | | - <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
1715 | | - <bestPractices>true</bestPractices> |
1716 | | - </configuration> |
1717 | | - </execution> |
1718 | | - </executions> |
1719 | | - </plugin> |
1720 | 1659 | </plugins> |
1721 | 1660 | </build> |
1722 | 1661 | </profile> |
|
0 commit comments