Skip to content

Commit a857e1f

Browse files
committed
Publish with Njord
Configuration to publish to Sonatype Central Portal happens in the settings.xml This closes #823
1 parent c3470ce commit a857e1f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

pom.xml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959

6060
<distributionManagement>
6161
<snapshotRepository>
62-
<id>ossrh</id>
63-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
62+
<id>sonatype-central-portal</id>
63+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
6464
</snapshotRepository>
6565
<repository>
66-
<id>ossrh</id>
67-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
66+
<id>sonatype-central-portal</id>
67+
<url>https://repo.maven.apache.org/maven2</url>
6868
</repository>
6969
</distributionManagement>
7070

@@ -93,6 +93,7 @@
9393
<contentPackageFile>${project.build.directory}/${project.build.finalName}.zip</contentPackageFile>
9494
<oak.version>1.8.2</oak.version>
9595
<jackrabbit.version>2.16.0</jackrabbit.version>
96+
<njord.version>0.7.4</njord.version>
9697
</properties>
9798

9899
<modules>
@@ -217,6 +218,14 @@
217218
</dependencyManagement>
218219

219220
<build>
221+
<extensions>
222+
<!-- Njord extension for Maven, responsible for injecting the right repository -->
223+
<extension>
224+
<groupId>eu.maveniverse.maven.njord</groupId>
225+
<artifactId>extension</artifactId>
226+
<version>${njord.version}</version>
227+
</extension>
228+
</extensions>
220229
<pluginManagement>
221230
<plugins>
222231
<plugin>
@@ -341,9 +350,9 @@
341350
<version>3.5.0</version>
342351
</plugin>
343352
<plugin>
344-
<groupId>org.sonatype.plugins</groupId>
345-
<artifactId>nexus-staging-maven-plugin</artifactId>
346-
<version>1.7.0</version>
353+
<groupId>eu.maveniverse.maven.plugins</groupId>
354+
<artifactId>njord</artifactId>
355+
<version>${njord.version}</version>
347356
</plugin>
348357
<plugin>
349358
<groupId>org.apache.sling</groupId>

0 commit comments

Comments
 (0)