|
16 | 16 | <module>log4j-legacy-tests</module> |
17 | 17 | <module>logback-legacy-tests</module> |
18 | 18 | <module>jul-ecs-formatter</module> |
19 | | - <!-- IMPORTANT: |
20 | | - For the nexus deployment to work correctly, the last project in the build order needs to have deployment |
21 | | - enabled (maven-deploy-plugin.skip must be false). |
22 | | - The reason is that for SNAPSHOT builds the upload is performed by the nexus-staging-maven-plugin |
23 | | - after the last project build and EVERYTHING is skipped if this project is not part of the deployment. |
24 | | - See the documentation (https://github.com/sonatype/nexus-maven-plugins/tree/main/staging/maven-plugin#plugin-flags) |
25 | | - and the related issue (https://issues.sonatype.org/browse/NEXUS-9138). |
26 | | -
|
27 | | - You can verify the build order by executing ./mvnw clean and looking for the "Reactor Build Order log". |
28 | | - --> |
29 | 19 | </modules> |
30 | 20 | <packaging>pom</packaging> |
31 | 21 | <inceptionYear>2019</inceptionYear> |
|
67 | 57 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
68 | 58 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
69 | 59 | <parent.base.dir>${project.basedir}</parent.base.dir> |
70 | | - <maven-deploy-plugin.skip>false</maven-deploy-plugin.skip> |
71 | 60 | </properties> |
72 | 61 |
|
73 | | - <distributionManagement> |
74 | | - <snapshotRepository> |
75 | | - <id>sonatype-nexus-snapshots</id> |
76 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
77 | | - </snapshotRepository> |
78 | | - <repository> |
79 | | - <id>sonatype-nexus-staging</id> |
80 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
81 | | - </repository> |
82 | | - </distributionManagement> |
83 | | - |
84 | 62 | <profiles> |
85 | 63 | <!-- |
86 | 64 | This profile is needed to be active in IntelliJ |
|
137 | 115 | <version>2.16.2</version> |
138 | 116 | </plugin> |
139 | 117 | <plugin> |
140 | | - <groupId>org.sonatype.plugins</groupId> |
141 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 118 | + <groupId>org.sonatype.central</groupId> |
| 119 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 120 | + <version>0.8.0</version> |
142 | 121 | <extensions>true</extensions> |
143 | 122 | <configuration> |
144 | | - <!-- The Base URL of Nexus instance where we want to stage --> |
145 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
146 | | - <!-- The server "id" element from settings to use authentication from --> |
147 | | - <serverId>sonatype-nexus-staging</serverId> |
148 | | - <skipNexusStagingDeployMojo>${maven-deploy-plugin.skip}</skipNexusStagingDeployMojo> |
149 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 123 | + <publishingServerId>central</publishingServerId> |
| 124 | + <autoPublish>true</autoPublish> |
| 125 | + <excludeArtifacts>log4j-legacy-tests,log4j2-legacy-tests,logback-legacy-tests</excludeArtifacts> |
150 | 126 | </configuration> |
151 | 127 | </plugin> |
152 | 128 | <plugin> |
|
0 commit comments