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
Copy file name to clipboardExpand all lines: BUILD_INFO.md
+40-15Lines changed: 40 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ part.
150
150
151
151
*Note:* deploying a release requires to have GPG keys: create them if necessary before producing a release
152
152
and publish your public key on one GPG key server (they are all synchronised, see
153
-
http://central.sonatype.org/pages/working-with-pgp-signatures.html#distributing-your-public-key) and wait for
153
+
https://central.sonatype.org/publish/requirements/gpg/#distributing-your-public-key) and wait for
154
154
your key to be present on http://pgp.mit.edu:11371. Also, as for any `gpg` command,
155
155
you need to have a running `gpg-agent`. It also requires that you have the appropriate Maven configuration
156
156
in `~/.m2/settings.xml` (see below).
@@ -164,7 +164,7 @@ it is a good practice to deploy a snapshot. This is done with the `deploy` phase
164
164
as specified at the beginning of this document).
165
165
To deploy a snapshot rather than a release, check that the artifact version in the pom file ends with -SNAPSHOT,
166
166
before running the deploy phase. This allows the
167
-
basic configuration to be checked for correctness (in particular the parameters used to upload to Sonatype Nexus).
167
+
basic configuration to be checked for correctness (in particular the parameters used to upload to the central repository).
168
168
169
169
### Build release and push to nexus
170
170
@@ -192,24 +192,49 @@ an up-to-date version of `template-library-core` repository (required by tests).
192
192
193
193
### Promoting from staging to release
194
194
195
-
1. After successfully executing `release:perform`, the new release will be in a staging area on Sonatype nexus server
196
-
(https://oss.sonatype.org). Before the release can be used, you must log in to the nexus server, close the staging
197
-
area and ask for the staging area being released.
195
+
1. After successfully executing `release:perform`, the new release will be held in the Portal OSSRH Staging API compatibility service.
196
+
Before the release can be used, you must make an API call to transfer the deployment from the compatibility service to the main Central Publisher Portal area.
197
+
198
+
1. Call `./ossrh-staging-api search` to verify that the new release exists, you should see something similar to the following:
1.Select the appropriate repository (you may have several if you did several attempts from different machines) and close it.
229
+
1.If successful go to https://central.sonatype.com/publishing/deployments and wait for the release to appear and pass validation. Once it does, press the "Publish" button to release it to Maven Central.
203
230
204
-
1. When the operation is successful (click on `Refresh`), click on the `Release` button. Once successfully released, you may have to wait a couple of hours before the release appears on the [Maven Central Repository](http://search.maven.org/#search%7Cga%7C1%7Corg.quattor.maven).
205
231
206
232
### Additional notes
207
233
208
234
* If something went wrong during `release:perform` (which pushes the release to the staging area), it is sometimes necessary to drop the staging directory after closing it to be able to run `release:perform` again (particularly if it complains that the packages are already present in the repository).
209
-
* A good documentation of the staging process can be found at http://books.sonatype.com/nexus-book/reference/staging-repositories.html
210
-
* Detailed information on using Maven to deploy releases at Sonatype is available at http://central.sonatype.org/pages/apache-maven.html.
235
+
* Documentation of the staging process can be found at https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
211
236
212
-
* If when the release becomes available on http://search.maven.org Maven complains that it cannot find the new release, add the `-U` option to the Maven command line. The execution of Maven may still result in an error but the local repository should be updated allowing the next execution of Maven to work.
237
+
* If when the release becomes available on https://central.sonatype.com/ Maven complains that it cannot find the new release, add the `-U` option to the Maven command line. The execution of Maven may still result in an error but the local repository should be updated allowing the next execution of Maven to work.
213
238
214
239
* If you really want to cancel the release process after doing `release:prepare` but before doing `release:perform` (it is preferable to fix the problem and rerun `release:prepare`), you need to issue the appropriate commands depending on whether `release:prepare` added some commits to the upstream branch whose commit message starts with `[maven-release-plugin]`:
215
240
@@ -231,7 +256,7 @@ after you logged in) and search for [org.quattor.maven](https://oss.sonatype.org
231
256
Connect to GitHub and delete the new tag if it has been created
232
257
```
233
258
234
-
***Note: after a first execution of `release:perform` which pushed things to Sonatype Central Repository, it is not recommended that you attempt to revert a failed release. If the problems with the release in progress cannot be fixed, simply start a new release.**
259
+
***Note: after a first execution of `release:perform` which pushed things to the Central Repository, it is not recommended that you attempt to revert a failed release. If the problems with the release in progress cannot be fixed, simply start a new release.**
235
260
236
261
Recommended Maven configuration
237
262
-------------------------------
@@ -269,5 +294,5 @@ Below is a typical Maven configuration file (`~/.m2/settings.xml`) to be able to
269
294
</settings>
270
295
```
271
296
272
-
In the above example `your_userid` and the password refer to your account at http://sonatype.org.
273
-
To get an account at Sonatype, follow the instructions at http://central.sonatype.org/pages/ossrh-guide.html.
297
+
In the above example `your_userid` and the password refer to your account at https://identity.sonatype.com.
298
+
To get an account, follow the instructions at https://central.sonatype.org/register/central-portal/#create-an-account
0 commit comments