Skip to content

Commit 9cfb263

Browse files
committed
Deploy: add distributionManagement for direct deploy
1 parent 083b6de commit 9cfb263

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

pom.xml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,17 @@
264264
</execution>
265265
</executions>
266266
</plugin>
267-
<plugin>
268-
<groupId>org.sonatype.central</groupId>
269-
<artifactId>central-publishing-maven-plugin</artifactId>
270-
<version>0.8.0</version>
271-
<extensions>true</extensions>
272-
<configuration>
273-
<publishingServerId>ossrh</publishingServerId>
274-
<autoPublish>true</autoPublish>
275-
<waitMaxTime>5400</waitMaxTime>
276-
</configuration>
277-
</plugin>
267+
<!--plugin>
268+
<groupId>org.sonatype.central</groupId>
269+
<artifactId>central-publishing-maven-plugin</artifactId>
270+
<version>0.8.0</version>
271+
<extensions>true</extensions>
272+
<configuration>
273+
<publishingServerId>ossrh</publishingServerId>
274+
<autoPublish>true</autoPublish>
275+
<waitMaxTime>5400</waitMaxTime>
276+
</configuration>
277+
</plugin-->
278278
</plugins>
279279
</build>
280280
</profile>
@@ -402,6 +402,18 @@
402402
</snapshots>
403403
</pluginRepository>
404404
</pluginRepositories>
405+
<distributionManagement>
406+
<repository>
407+
<id>ossrh</id>
408+
<name>Central Portal Staging</name>
409+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
410+
</repository>
411+
<snapshotRepository>
412+
<id>ossrh</id>
413+
<name>Central Portal Snapshots</name>
414+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
415+
</snapshotRepository>
416+
</distributionManagement>
405417
<!-- Source Control -->
406418
<scm>
407419
<connection>scm:git:https://github.com/OpenIdentityPlatform/OpenAM.git</connection>
@@ -1929,7 +1941,7 @@
19291941
<plugin>
19301942
<groupId>org.apache.maven.plugins</groupId>
19311943
<artifactId>maven-release-plugin</artifactId>
1932-
<version>3.0.0-M7</version>
1944+
<version>3.1.1</version>
19331945
<configuration>
19341946
<autoVersionSubmodules>true</autoVersionSubmodules>
19351947
<updateBranchVersions>true</updateBranchVersions>

0 commit comments

Comments
 (0)