Skip to content

Commit

Permalink
Add docs for connection params configuration and staging repo configu…
Browse files Browse the repository at this point in the history
…ration for Sonatype
  • Loading branch information
MaciejG604 committed Nov 24, 2023
1 parent 9bd1db4 commit 11c1232
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions website/docs/commands/publishing/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,15 @@ and the [CI overrides](#ci-overrides).

### Connection parameters configuration

When publishing to repositories
When publishing large packages or when the internet connection is spotty one may use the following options to configure the connection parameters:
- `--connection-timeout-seconds` - the connection timeout in seconds
- `--response-timeout-seconds` - the response timeout in seconds
- `--connection-timeout-retries` - the number of times to retry the connection on timeout

Publishing to Sonatype uses a staging repository which may sometimes cause problems when transitioning through states.
If a publishing process fails with status `500` and message `"Staging repository is already transitioning"` you can try to
If a publishing process fails with status `500` and message `"Staging repository is already transitioning"` you can try to tweak the following parameters taht are Sonatype specific:
- `--staging-repo-retries` - the number of times to retry the staging repository transition
- `--staging-repo-wait-time-milis` - the base time to wait between retries in milliseconds

## Publishing

Expand Down

0 comments on commit 11c1232

Please sign in to comment.