GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prepare for publishing vie the Central Portal by slawekjaranowski · Pull Request #353 · codehaus-plexus/plexus-pom

Prepare for publishing vie the Central Portal #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
slawekjaranowski merged 8 commits into master from central-portal
Jun 2, 2025

Uh oh!

There was an error while loading. Please reload this page.

Merged

Prepare for publishing vie the Central Portal #353

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8 commits
Select commit Hold shift + click to select a range
7c3008c
Prepare for publishing vie the Central Portal
slawekjaranowski Jun 2, 2025
8430127
use longer id
slawekjaranowski Jun 2, 2025
361db05
use plexusDistMgmtSnapshotsUrl property
slawekjaranowski Jun 2, 2025
15831d7
auto publish by njord
slawekjaranowski Jun 2, 2025
c7dee1a
use different server id for snapshots
slawekjaranowski Jun 2, 2025
3a09b02
spotless
slawekjaranowski Jun 2, 2025
0fab00e
use the same id for snapshots
slawekjaranowski Jun 2, 2025
6facd7e
fix typo
slawekjaranowski Jun 2, 2025
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

40 changes: 34 additions & 6 deletions 40 pom.xml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ limitations under the License.

<distributionManagement>
<repository>
<id>plexus-releases</id>
<name>Plexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>sonatype-central-portal</id>
<name>Sonatype Central Portal</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<snapshotRepository>
<id>plexus-snapshots</id>
<name>Plexus Snapshot Repository</name>
<id>${plexusDistMgmtSnapshotsId}</id>
<name>${plexusDistMgmtSnapshotsName}</name>
<url>${plexusDistMgmtSnapshotsUrl}</url>
</snapshotRepository>
<!-- site distribution management must be override in child projects -->
Expand All @@ -340,17 +340,28 @@ limitations under the License.
<maven.compiler.proc>none</maven.compiler.proc>
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plexusDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/plexus-snapshots</plexusDistMgmtSnapshotsUrl>

<plexusDistMgmtSnapshotsId>sonatype-central-portal</plexusDistMgmtSnapshotsId>
<plexusDistMgmtSnapshotsName>Sonatype Central Snapshots</plexusDistMgmtSnapshotsName>
<plexusDistMgmtSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots</plexusDistMgmtSnapshotsUrl>

<project.build.outputTimestamp>2025-05-23T18:11:49Z</project.build.outputTimestamp>
<gpg.useagent>true</gpg.useagent>
<spotless-maven-plugin.version>2.44.5</spotless-maven-plugin.version>
<mavenPluginToolsVersion>3.15.1</mavenPluginToolsVersion>
<mavenFluidoSkinVersion>2.1.0</mavenFluidoSkinVersion>
<mavenSurefireVersion>3.5.3</mavenSurefireVersion>
<junit5Version>5.13.0</junit5Version>
<njord.version>0.7.1</njord.version>
<spotless.action>apply</spotless.action>
<sisuMavenPluginVersion>0.9.0.M4</sisuMavenPluginVersion>
<invoker.streamLogsOnFailures>true</invoker.streamLogsOnFailures>

<!-- njord configuration -->
<njord.autoPublish>true</njord.autoPublish>
<njord.publishingType>automatic</njord.publishingType>
<njord.waitForStates>true</njord.waitForStates>
<njord.enabled>false</njord.enabled>
Comment thread

@kwin kwin Oct 10, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cstamas What does that do? I thought that njord would only ever kick in if the distribution URI has scheme njord...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cstamas cstamas Oct 10, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This completely disables Njord (by not creating njord session), and hence no njord component will ever "kick in", as all of them start by checking the session existence.

Release profile enables it:
https://github.com/codehaus-plexus/plexus-pom/blob/master/pom.xml#L821-L822

This just makes sure that in "normal" operations Njord is not meddling for sure, and even in case of release, it as you say, only does "local staging" and later publishing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cstamas cstamas Oct 10, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure why was it done like it, as this really prevents Njord to stage snapshots for example, but that operation currently supports m-deploy-p as well, so no real need for Njord...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
</properties>

<dependencyManagement>
Expand All @@ -368,6 +379,11 @@ limitations under the License.
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>eu.maveniverse.maven.plugins</groupId>
<artifactId>njord</artifactId>
<version>${njord.version}</version>
</plugin>
<!-- set versions of common plugins for reproducibility, ordered alphabetically -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -683,6 +699,13 @@ limitations under the License.
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>eu.maveniverse.maven.njord</groupId>
<artifactId>extension</artifactId>
<version>${njord.version}</version>
</extension>
</extensions>
</build>

<reporting>
Expand Down Expand Up @@ -786,6 +809,11 @@ limitations under the License.
</profile>
<profile>
<id>plexus-release</id>
<properties>
<minimalMavenBuildVersion>3.9.0</minimalMavenBuildVersion>
<!-- use njord during release -->
<njord.enabled>true</njord.enabled>
</properties>
<build>
<plugins>
<!-- Create a source-release artifact that contains the fully buildable
Expand Down
11 changes: 0 additions & 11 deletions 11 src/site/apt/index.apt
Show comments
View file
Open in desktop

This file was deleted.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

27 changes: 27 additions & 0 deletions 27 src/site/markdown/index.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Plexus Parent POM

Plexus Parent POM defines common [plugins](./plugin-management.html), reporting and release configuration.

## Preparing the environment for publishing vie the Central Portal

Release manager should include the following sections in your personal `settings.xml`:

```xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<servers>
<server>
<id>sonatype-central-portal</id>
<username>jqhacker</username> <!-- central portal token -->
<password>SeCrEt</password> <!-- central portal token -->
<configuration>
<njord.publisher>sonatype-cp</njord.publisher>
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
</configuration>
</server>
</servers>
</settings>
```

Tokens can be obtained from https://central.sonatype.com/account

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.