MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads

Debraj Manna
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
Reply | Threaded
Open this post in threaded view
|

Re: MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads

htesgaard

-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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads

htesgaard
In reply to this post by Debraj Manna
-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: [hidden email]
For additional commands, e-mail: [hidden email]