Discussion:
MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads
Debraj Manna
2017-06-19 05:51:15 UTC
Permalink
HI

Can someone point me to the documentation what does the below two options
mean as mentioned in the comment of MNG-4706
<https://issues.apache.org/jira/browse/MNG-4706>

-Daether.connector.basic.threads=1
-Daether.connector.resumeDownloads=false
htesgaard
2017-12-14 09:37:37 UTC
Permalink
-Daether.connector.resumeDownloads=false or
-Daether.connector.resumeDownloads.<REPO_ID>=false
disables resume of partial downloads from a maven repo. It seams like Nexus
in some cases/configuration does not support the continue feature.

There is another property -Daether.connector.resumeThreshold=<filesize in
bytes> that defines how big files must be in bytes, before the feature is
enabled.

For implementation details see the code here:
https://github.com/apache/maven-resolver/blob/master/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java

https://github.com/eclipse/aether-core/blob/master/aether-connector-basic/src/main/java/org/eclipse/aether/connector/basic/PartialFile.java

Here is an example of a problem related to nexus and how
-Daether.connector.resumeDownloads=false solves the issue:
https://issues.apache.org/jira/browse/MRESOLVER-25

-Daether.connector.basic.threads=1 specifies how many threads are used for
downloading dependencies in parallel. The default on the code referenced
above is 5.



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@maven.apache.org
For additional commands, e-mail: users-***@maven.apache.org
htesgaard
2017-12-14 09:01:08 UTC
Permalink
-Daether.connector.resumeDownloads=false or
-Daether.connector.resumeDownloads.<REPO_ID>=false
disables resume of partial downloads from a maven repo. It seams like Nexus
in some cases/configuration does not support the continue feature.

There is another property -Daether.connector.resumeThreshold=<filesize in
bytes> that defines how big files must be, before the feature is enabled.

For implementation details see the code here:
https://github.com/apache/maven-resolver/blob/master/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java

https://github.com/eclipse/aether-core/blob/master/aether-connector-basic/src/main/java/org/eclipse/aether/connector/basic/PartialFile.java

Here is an example of a problem related to nexus and how
-Daether.connector.resumeDownloads=false solves the issue:
https://issues.apache.org/jira/browse/MRESOLVER-25

-Daether.connector.basic.threads=1 specifies how many threads are used for
downloading dependencies in parallel. The default on the code referenced
above is 5.





--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@maven.apache.org
For additional commands, e-mail: users-***@maven.apache.org

Loading...