File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 320
320
<!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: -->
321
321
<local .staging.releases.repo.id>staging-deploy</local .staging.releases.repo.id>
322
322
<local .staging.releases.repo.url>file:${maven.multiModuleProjectDirectory} /target/staging-deploy/maven</local .staging.releases.repo.url>
323
+ <ossrh .releases.repo.id>ossrh</ossrh .releases.repo.id>
324
+ <ossrh .releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh .releases.repo.url>
323
325
<ossrh .snapshots.repo.id>ossrh</ossrh .snapshots.repo.id>
324
326
<ossrh .snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh .snapshots.repo.url>
325
327
1191
1193
1192
1194
<distributionManagement >
1193
1195
<repository >
1194
- <id >${local.staging .releases.repo.id} </id >
1195
- <name >Local Staging Directory Releases Repository</name >
1196
- <url >${local.staging .releases.repo.url} </url >
1196
+ <id >${ossrh .releases.repo.id} </id >
1197
+ <name >OSSRH Releases Repository</name >
1198
+ <url >${ossrh .releases.repo.url} </url >
1197
1199
</repository >
1198
1200
<snapshotRepository >
1199
1201
<id >${ossrh.snapshots.repo.id} </id >
1287
1289
<!-- We want this execution to happen before moditect (which executes at package phase) -->
1288
1290
<javadoc .generate.jar.phase>prepare-package</javadoc .generate.jar.phase>
1289
1291
</properties >
1292
+ <build >
1293
+ <pluginManagement >
1294
+ <plugins >
1295
+ <plugin >
1296
+ <artifactId >maven-deploy-plugin</artifactId >
1297
+ <configuration >
1298
+ <altReleaseDeploymentRepository >${local.staging.releases.repo.id} ::${local.staging.releases.repo.url} </altReleaseDeploymentRepository >
1299
+ </configuration >
1300
+ </plugin >
1301
+ </plugins >
1302
+ </pluginManagement >
1303
+ </build >
1290
1304
</profile >
1291
1305
1292
1306
<profile >
You can’t perform that action at this time.
0 commit comments