You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Sonatype Central Portal (`sonatype-cp`) |`sonatype-cp`| Obtain tokens for publishing by following [this documentation](https://central.sonatype.org/publish/generate-portal-token/). |
63
+
| Sonatype OSS on https://oss.sonatype.org/ (`sonatype-oss`) |`sonatype-oss`| Obtain tokens for publishing by following [this documentation](https://central.sonatype.org/publish/generate-token/) and using OSS instance. |
64
+
| Sonatype S01 on https://s01.oss.sonatype.org/ (`sonatype-s01`) |`sonatype-s01`| As above but using s01 instance. |
65
+
| Apache RAO on (`apache-rao`) |`apache.releases.https`| As above but using RAO instance. |
66
+
67
+
Make sure your `settings.xml` contains token associated with proper `server.id` corresponding to you publishing service you want to use.
68
+
69
+
That's all! No project change needed at all.
70
+
71
+
## Using it
72
+
73
+
Next, let's see an example of Apache Maven project (I used `maven-gpg-plugin`):
74
+
75
+
1. For example’s sake, I took last release of plugin (hence am simulating release deploy): `git checkout maven-gpg-plugin-3.2.7`
50
76
2. Deploy it (locally stage): `mvn -P apache-release deploy -DaltDeploymentRepository=id::njord:` (The `id` is really unused, is there just to fulfil deploy plugin syntax requirement. The URL `njord:` will use "default" store template that is RELEASE. You can target other templates by using, and is equivalent of this `njord:release`. You can stage locally snapshots as well with URL `njord:snapshot`. Finally, you can target existing store with `njord:store:storename-xxx`).
51
77
3. Check staged store names: `mvn njord:list`
52
-
4. Check locally staged content: `mvn njord:list-content -Dstore=release-xxx` (use store name from above)
53
-
5. Publish it to `repository.apache.org`: `mvn njord:publish -Dstore=release-xxx -Dtarget=apache-rao` (use store name from above)
54
-
6. From now on, the repository is staged on RAO, so you can close it, vote, and all the usual fluff
78
+
4. Optionally, check locally staged content: `mvn njord:list-content -Dstore=release-xxx` (use store name from above)
79
+
5. Optionally, validate locally staged content: `mvn njord:validate -Ddetails -Dstore=release-xxx` (use store name from above)
80
+
6. Publish it to ASF: `mvn njord:publish -Dstore=release-xxx -Dtarget=apache-rao` (use store name from above)
81
+
7. From now on, the repository is staged on RAO, so you can close it, vote, and all the usual fluff as before.
82
+
8. Drop locally staged store: `mvn njord:drop -Dstor=release-xxx` (use store name from above)
0 commit comments