Skip to content

Commit 6f3770a

Browse files
authored
Merge pull request #285 from cstamas/central-portal
Sonatype Central Portal publishing
2 parents 440bd6f + 6da89e9 commit 6f3770a

File tree

2 files changed

+47
-14
lines changed

2 files changed

+47
-14
lines changed

.github/release-settings.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
Merge these into your own ~/.m2/settings.xml
5+
6+
Don't forget to fill in the username/password!
7+
8+
If you want to publish snapshots to Sonatype Central Portal, don't forget to enable snapshots on NS!
9+
-->
10+
11+
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
13+
<pluginGroups>
14+
<pluginGroup>eu.maveniverse.maven.plugins</pluginGroup>
15+
</pluginGroups>
16+
17+
<servers>
18+
<server>
19+
<id>sonatype-central-portal</id>
20+
<username>${env.MAVEN_USER}</username>
21+
<password>${env.MAVEN_PASSWORD}</password>
22+
<configuration>
23+
<njord.publisher>sonatype-cp</njord.publisher>
24+
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
25+
<njord.snapshotUrl>njord:template:snapshot-sca</njord.snapshotUrl>
26+
</configuration>
27+
</server>
28+
</servers>
29+
30+
</settings>

pom.xml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,35 @@
123123
<qdox.javaparser.stack>500</qdox.javaparser.stack>
124124
<maven.compiler.source>8</maven.compiler.source>
125125
<maven.compiler.target>8</maven.compiler.target>
126+
<version.njord>0.8.4</version.njord>
126127
</properties>
127128

128129
<distributionManagement>
129130
<snapshotRepository>
130-
<id>central</id>
131-
<url>https://central.sonatype.com/api/v1/publisher</url>
131+
<id>sonatype-central-portal</id>
132+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
132133
</snapshotRepository>
133134
<repository>
134-
<id>central</id>
135-
<url>https://central.sonatype.com/api/v1/publisher</url>
135+
<id>sonatype-central-portal</id>
136+
<url>https://repo.maven.apache.org/maven2</url>
136137
</repository>
137138
</distributionManagement>
138139

139140
<build>
141+
<extensions>
142+
<extension>
143+
<groupId>eu.maveniverse.maven.njord</groupId>
144+
<artifactId>extension3</artifactId>
145+
<version>${version.njord}</version>
146+
</extension>
147+
</extensions>
140148
<pluginManagement>
141149
<plugins>
150+
<plugin>
151+
<groupId>eu.maveniverse.maven.plugins</groupId>
152+
<artifactId>njord</artifactId>
153+
<version>${version.njord}</version>
154+
</plugin>
142155
<plugin>
143156
<groupId>org.apache.maven.plugins</groupId>
144157
<artifactId>maven-clean-plugin</artifactId>
@@ -432,16 +445,6 @@
432445
</execution>
433446
</executions -->
434447
</plugin>
435-
<plugin>
436-
<groupId>org.sonatype.central</groupId>
437-
<artifactId>central-publishing-maven-plugin</artifactId>
438-
<version>0.8.0</version>
439-
<extensions>true</extensions>
440-
<configuration>
441-
<publishingServerId>central</publishingServerId>
442-
<autoPublish>true</autoPublish>
443-
</configuration>
444-
</plugin>
445448
<plugin>
446449
<groupId>org.apache.maven.plugins</groupId>
447450
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)