|
40 | 40 | </scm> |
41 | 41 | <distributionManagement> |
42 | 42 | <snapshotRepository> |
43 | | - <id>ossrh</id> |
44 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 43 | + <id>sonatype-central-portal</id> |
| 44 | + <url>https://central.sonatype.com/repository/maven-snapshots</url> |
45 | 45 | </snapshotRepository> |
46 | 46 | <repository> |
47 | | - <id>ossrh</id> |
48 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 47 | + <id>sonatype-central-portal</id> |
| 48 | + <url>https://repo.maven.apache.org/maven2</url> |
49 | 49 | </repository> |
50 | 50 | </distributionManagement> |
51 | 51 |
|
|
56 | 56 | <maven.compiler.release>${java.target.version}</maven.compiler.release> |
57 | 57 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
58 | 58 | <arguments /> <!-- additional arguments for the forked Maven run during releases --> |
| 59 | + <njord.version>0.9.4</njord.version> |
| 60 | + <!-- https://maveniverse.eu/docs/njord/configuration/#global-properties --> |
| 61 | + <njord.autoPublish>true</njord.autoPublish> |
| 62 | + <njord.publishingType>automatic</njord.publishingType> |
| 63 | + <njord.waitForStates>true</njord.waitForStates> |
| 64 | + <njord.publisher>sonatype-cp</njord.publisher> |
| 65 | + <njord.releaseUrl>njord:template:release-sca</njord.releaseUrl> |
| 66 | + <njord.snapshotUrl>njord:template:snapshot</njord.snapshotUrl> |
59 | 67 | </properties> |
60 | 68 |
|
61 | 69 | <dependencies> |
|
125 | 133 | </dependencies> |
126 | 134 |
|
127 | 135 | <build> |
| 136 | + <extensions> |
| 137 | + <!-- Njord extension for Maven, responsible for injecting the right repository --> |
| 138 | + <extension> |
| 139 | + <groupId>eu.maveniverse.maven.njord</groupId> |
| 140 | + <artifactId>extension3</artifactId> |
| 141 | + <version>${njord.version}</version> |
| 142 | + </extension> |
| 143 | + </extensions> |
128 | 144 | <pluginManagement> |
129 | 145 | <plugins> |
130 | 146 | <plugin> |
|
184 | 200 | <artifactId>maven-gpg-plugin</artifactId> |
185 | 201 | <version>3.2.8</version> |
186 | 202 | </plugin> |
187 | | - <plugin> |
188 | | - <groupId>org.sonatype.plugins</groupId> |
189 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
190 | | - <version>1.6.8</version> |
191 | | - </plugin> |
192 | 203 | <plugin> |
193 | 204 | <groupId>org.codehaus.mojo</groupId> |
194 | 205 | <artifactId>license-maven-plugin</artifactId> |
|
203 | 214 | <artifactId>maven-invoker-plugin</artifactId> |
204 | 215 | <version>3.9.1</version> |
205 | 216 | </plugin> |
| 217 | + <plugin> |
| 218 | + <groupId>eu.maveniverse.maven.plugins</groupId> |
| 219 | + <artifactId>njord</artifactId> |
| 220 | + <version>${njord.version}</version> |
| 221 | + </plugin> |
206 | 222 | </plugins> |
207 | 223 | </pluginManagement> |
208 | 224 | <plugins> |
|
281 | 297 | <scmReleaseCommitComment>@{prefix} prepare release @{releaseLabel} [skip ci]</scmReleaseCommitComment> |
282 | 298 | </configuration> |
283 | 299 | </plugin> |
284 | | - <plugin> |
285 | | - <groupId>org.sonatype.plugins</groupId> |
286 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
287 | | - <extensions>true</extensions> |
288 | | - <configuration> |
289 | | - <serverId>ossrh</serverId> |
290 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
291 | | - <!-- manually release in https://oss.sonatype.org/#stagingRepositories after the Maven release build --> |
292 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
293 | | - <!-- workarounds to make releasing possible at times when ossrh is really slow --> |
294 | | - <stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes> |
295 | | - <keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure> |
296 | | - </configuration> |
297 | | - </plugin> |
298 | | - |
299 | 300 | <plugin> |
300 | 301 | <groupId>org.codehaus.mojo</groupId> |
301 | 302 | <artifactId>license-maven-plugin</artifactId> |
|
0 commit comments