Skip to content

Commit 299069d

Browse files
committed
HSEARCH-5382 Use OSSRH Releases Repository as a release repository in the distributionManagement section
1 parent 21db71a commit 299069d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pom.xml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@
320320
<!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: -->
321321
<local.staging.releases.repo.id>staging-deploy</local.staging.releases.repo.id>
322322
<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>
323325
<ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
324326
<ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
325327

@@ -1191,9 +1193,9 @@
11911193

11921194
<distributionManagement>
11931195
<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>
11971199
</repository>
11981200
<snapshotRepository>
11991201
<id>${ossrh.snapshots.repo.id}</id>
@@ -1287,6 +1289,18 @@
12871289
<!-- We want this execution to happen before moditect (which executes at package phase) -->
12881290
<javadoc.generate.jar.phase>prepare-package</javadoc.generate.jar.phase>
12891291
</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>
12901304
</profile>
12911305

12921306
<profile>

0 commit comments

Comments
 (0)