-
Notifications
You must be signed in to change notification settings - Fork 7
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.
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
Merged
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 8430127
use longer id
slawekjaranowski 361db05
use plexusDistMgmtSnapshotsUrl property
slawekjaranowski 15831d7
auto publish by njord
slawekjaranowski c7dee1a
use different server id for snapshots
slawekjaranowski 3a09b02
spotless
slawekjaranowski 0fab00e
use the same id for snapshots
slawekjaranowski 6facd7e
fix typo
slawekjaranowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.
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
...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.
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...