Skip to content

Commit 821c03d

Browse files
committed
chore: integrated maven central plugin
1 parent 8258662 commit 821c03d

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
java-version: '8'
1717
distribution: 'adopt'
18-
server-id: sonatype-nexus-snapshots
18+
server-id: central-snapshots
1919
server-username: MAVEN_USERNAME
2020
server-password: MAVEN_PASSWORD
2121
- name: Publish Release

pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,18 @@
5555
</developer>
5656
</developers>
5757
<distributionManagement>
58-
<repository>
59-
<id>sonatype-nexus-staging</id>
60-
<name>OrientDB Maven2 Repository</name>
61-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
62-
</repository>
6358
<snapshotRepository>
64-
<id>sonatype-nexus-snapshots</id>
65-
<name>OrientDB Maven2 Snapshot Repository</name>
66-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
59+
<id>central-snapshots</id>
60+
<name>Central Portal Snapshots</name>
61+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
6762
<uniqueVersion>false</uniqueVersion>
6863
</snapshotRepository>
6964
</distributionManagement>
7065
<repositories>
7166
<repository>
72-
<id>sonatype-nexus-snapshots</id>
73-
<name>Sonatype Nexus Snapshots</name>
74-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
67+
<id>central-snapshots</id>
68+
<name>Central Portal Snapshots</name>
69+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
7570
<releases>
7671
<enabled>false</enabled>
7772
</releases>
@@ -263,7 +258,16 @@
263258
<localCheckout>true</localCheckout>
264259
</configuration>
265260
</plugin>
266-
</plugins>
261+
<plugin>
262+
<groupId>org.sonatype.central</groupId>
263+
<artifactId>central-publishing-maven-plugin</artifactId>
264+
<version>0.8.0</version>
265+
<extensions>true</extensions>
266+
<configuration>
267+
<publishingServerId>central</publishingServerId>
268+
</configuration>
269+
</plugin>
270+
</plugins>
267271
</build>
268272
<profiles>
269273
<profile>

0 commit comments

Comments
 (0)