Skip to content

Commit c6bd5e9

Browse files
committed
Update to central portal publishing
1 parent 78fbda3 commit c6bd5e9

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

pom.xml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
65
<groupId>org.orbisgis</groupId>
76
<artifactId>cts</artifactId>
87
<version>1.7.2-SNAPSHOT</version>
@@ -79,14 +78,15 @@
7978
<!-- Dependencies -->
8079
<repositories>
8180
<repository>
82-
<id>oss-sonatype</id>
83-
<name>oss-sonatype-snapshot</name>
84-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
85-
</repository>
86-
<repository>
87-
<id>orbisgis-release</id>
88-
<name>oss-sonatype-release</name>
89-
<url>https://oss.sonatype.org/content/repositories/releases/</url>
81+
<name>Central Portal Snapshots</name>
82+
<id>central-portal-snapshots</id>
83+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
84+
<releases>
85+
<enabled>false</enabled>
86+
</releases>
87+
<snapshots>
88+
<enabled>true</enabled>
89+
</snapshots>
9090
</repository>
9191
</repositories>
9292

@@ -269,6 +269,16 @@
269269
<groupId>org.apache.maven.plugins</groupId>
270270
<artifactId>maven-javadoc-plugin</artifactId>
271271
</plugin>
272+
<plugin>
273+
<groupId>org.sonatype.central</groupId>
274+
<artifactId>central-publishing-maven-plugin</artifactId>
275+
<version>0.7.0</version>
276+
<extensions>true</extensions>
277+
<configuration>
278+
<publishingServerId>central</publishingServerId>
279+
<tokenAuth>true</tokenAuth>
280+
</configuration>
281+
</plugin>
272282
</plugins>
273283
</build>
274284

@@ -286,15 +296,4 @@
286296
</profile>
287297
</profiles>
288298

289-
<distributionManagement>
290-
<snapshotRepository>
291-
<id>ossrh</id>
292-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
293-
</snapshotRepository>
294-
<repository>
295-
<id>ossrh</id>
296-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
297-
</repository>
298-
</distributionManagement>
299-
300299
</project>

0 commit comments

Comments
 (0)