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: website/docs/commands/publishing/publish.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,18 @@ Specify publish repository authentication either on the command-line or via
288
288
using directives. See user / password / realm in the [settings table](#settings)
289
289
and the [CI overrides](#ci-overrides).
290
290
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
+
291
303
## Publishing
292
304
293
305
Once all the necessary settings are set, publish a Scala CLI project with a command
0 commit comments