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: maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java
+64-1Lines changed: 64 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,24 @@ public class ArtifactItem
90
90
*/
91
91
privateIntegertimeout;
92
92
93
+
/**
94
+
* Per-artifact override for the number of attempts to download this
95
+
* artifact in case of transient network failures. When unset, the
96
+
* Mojo-level {@code downloadRetryAttempts} parameter (default 5) is used.
97
+
*
98
+
* @parameter
99
+
*/
100
+
privateIntegerretryAttempts;
101
+
102
+
/**
103
+
* Per-artifact override for the delay in millis between download retry
104
+
* attempts. When unset, the Mojo-level {@code downloadRetryDelay}
105
+
* parameter (default 2000 ms) is used.
106
+
*
107
+
* @parameter
108
+
*/
109
+
privateIntegerretryDelay;
110
+
93
111
/**
94
112
* Packaging type of the artifact to be installed.
95
113
*
@@ -387,7 +405,17 @@ public final void setDownloadUrl(final String downloadUrl)
387
405
*/
388
406
publicfinalIntegergetTimeout()
389
407
{
390
-
return (timeout==null||timeout<=0)?5000:timeout;
408
+
return (timeout==null||timeout<=0)?10000:timeout;
409
+
}
410
+
411
+
/**
412
+
* @return Raw timeout value as configured (may be null) so callers can
413
+
* distinguish an explicitly set per-artifact timeout from the
414
+
* default fallback returned by {@link #getTimeout()}.
415
+
*/
416
+
publicfinalIntegergetTimeoutRaw()
417
+
{
418
+
returntimeout;
391
419
}
392
420
393
421
/**
@@ -399,6 +427,41 @@ public final void setTimeout(final Integer timeout)
399
427
this.timeout = timeout;
400
428
}
401
429
430
+
/**
431
+
* @return Raw retry attempts value as configured (may be null).
432
+
*/
433
+
publicfinalIntegergetRetryAttempts()
434
+
{
435
+
returnretryAttempts;
436
+
}
437
+
438
+
/**
439
+
* @param retryAttempts
440
+
* Number of attempts to download the artifact in case of
Copy file name to clipboardExpand all lines: maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ResolveExternalDependencyMojo.java
0 commit comments