Skip to content

Commit 76cfb40

Browse files
Prepare for publishing vie the Central Portal
fix: #350
1 parent 57db0d0 commit 76cfb40

File tree

3 files changed

+53
-17
lines changed

3 files changed

+53
-17
lines changed

pom.xml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,12 @@ limitations under the License.
313313

314314
<distributionManagement>
315315
<repository>
316-
<id>plexus-releases</id>
317-
<name>Plexus Release Repository</name>
318-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
316+
<id>sonatype-cp</id>
317+
<url>https://repo.maven.apache.org/maven2</url>
319318
</repository>
320319
<snapshotRepository>
321-
<id>plexus-snapshots</id>
322-
<name>Plexus Snapshot Repository</name>
323-
<url>${plexusDistMgmtSnapshotsUrl}</url>
320+
<id>sonatype-cp</id>
321+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
324322
</snapshotRepository>
325323
<!-- site distribution management must be override in child projects -->
326324
<site>
@@ -348,9 +346,14 @@ limitations under the License.
348346
<mavenFluidoSkinVersion>2.1.0</mavenFluidoSkinVersion>
349347
<mavenSurefireVersion>3.5.3</mavenSurefireVersion>
350348
<junit5Version>5.12.2</junit5Version>
349+
<njord.version>0.7.1</njord.version>
351350
<spotless.action>apply</spotless.action>
352351
<sisuMavenPluginVersion>0.9.0.M4</sisuMavenPluginVersion>
353352
<invoker.streamLogsOnFailures>true</invoker.streamLogsOnFailures>
353+
354+
<!-- njord configuration -->
355+
<njord.autoPublish>true</njord.autoPublish>
356+
<njord.enabled>false</njord.enabled>
354357
</properties>
355358

356359
<dependencyManagement>
@@ -368,6 +371,11 @@ limitations under the License.
368371
<build>
369372
<pluginManagement>
370373
<plugins>
374+
<plugin>
375+
<groupId>eu.maveniverse.maven.plugins</groupId>
376+
<artifactId>njord</artifactId>
377+
<version>${njord.version}</version>
378+
</plugin>
371379
<!-- set versions of common plugins for reproducibility, ordered alphabetically -->
372380
<plugin>
373381
<groupId>org.apache.maven.plugins</groupId>
@@ -683,6 +691,13 @@ limitations under the License.
683691
</executions>
684692
</plugin>
685693
</plugins>
694+
<extensions>
695+
<extension>
696+
<groupId>eu.maveniverse.maven.njord</groupId>
697+
<artifactId>extension</artifactId>
698+
<version>${njord.version}</version>
699+
</extension>
700+
</extensions>
686701
</build>
687702

688703
<reporting>
@@ -786,6 +801,11 @@ limitations under the License.
786801
</profile>
787802
<profile>
788803
<id>plexus-release</id>
804+
<properties>
805+
<minimalMavenBuildVersion>3.9.0</minimalMavenBuildVersion>
806+
<!-- use njord during release -->
807+
<njord.enabled>true</njord.enabled>
808+
</properties>
789809
<build>
790810
<plugins>
791811
<!-- Create a source-release artifact that contains the fully buildable

src/site/apt/index.apt

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/site/markdown/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Plexus Parent POM
2+
3+
Plexus Parent POM defines common [plugins](./plugin-management.html), reporting and release configuration.
4+
5+
## Preparing the environment for publishing vie the Central Portal
6+
7+
Release manager should include the following sections in your personal `settings.xml`:
8+
9+
```xml
10+
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
12+
<servers>
13+
<server>
14+
<id>sonatype-cp</id>
15+
<username>jqhacker</username> <!-- central portal token -->
16+
<password>SeCrEt</password> <!-- central portal token -->
17+
<configuration>
18+
<njord.publisher>sonatype-cp</njord.publisher>
19+
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
20+
</configuration>
21+
</server>
22+
</servers>
23+
</settings>
24+
```
25+
26+
Tokens can be obtained from https://central.sonatype.com/account
27+

0 commit comments

Comments
 (0)