Skip to content

Commit 9957180

Browse files
committed
Add docs for connection params configuration and staging repo configuration for Sonatype
1 parent 77d77d3 commit 9957180

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

website/docs/commands/publishing/publish.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,18 @@ Specify publish repository authentication either on the command-line or via
288288
using directives. See user / password / realm in the [settings table](#settings)
289289
and the [CI overrides](#ci-overrides).
290290

291+
### Connection parameters configuration
292+
293+
When publishing large packages or when the internet connection is spotty one may use the following options to configure the connection parameters:
294+
- `--connection-timeout-seconds` - the connection timeout in seconds
295+
- `--response-timeout-seconds` - the response timeout in seconds
296+
- `--connection-timeout-retries` - the number of times to retry the connection on timeout
297+
298+
Publishing to Sonatype uses a staging repository which may sometimes cause problems when transitioning through states.
299+
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:
300+
- `--staging-repo-retries` - the number of times to retry the staging repository transition
301+
- `--staging-repo-wait-time-milis` - the base time to wait between retries in milliseconds
302+
291303
## Publishing
292304

293305
Once all the necessary settings are set, publish a Scala CLI project with a command

0 commit comments

Comments
 (0)