[ https://issues.apache.org/jira/browse/MRESOLVER-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693076#comment-17693076 ]
Knut Wannheden commented on MRESOLVER-7: ---------------------------------------- Yes, the new parallel collector is working very nicely! In one build I did see an error, which I was thinking might be related to using the BF collector, but I haven't been able to reproduce it again. In my settings.xml I have multiple Maven repositories configured which "overlap" (i.e. some artifacts are contained in multiple of these repos) and I have never been able to figure out how Maven decides from which repo to download an artifact (yes, I know this is documented, but it doesn't appear to match my observations). I don't know if this extra information is relevant or helpful, but anyway, here is the error I saw. Please let me know if you want me to create an issue. {noformat} [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent (default-prepare-agent) on project glu-test-contract-service-parent: Execution default-prepare-agent of goal org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent failed: Plugin org.jacoco:jacoco-maven-plugin:0.8.8 or one of its dependencies could not be resolved: Failed to collect dependencies at org.jacoco:jacoco-maven-plugin:jar:0.8.8 -> org.apache.maven.shared:file-management:jar:1.2.1 -> org.apache.maven:maven-plugin-api:jar:2.0.6: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: c:\dev\.m2-nexus\repository\org\apache\maven\maven-parent\5\maven-parent-5.pom.lastUpdated.7796060141987260961.tmp -> c:\dev\.m2-nexus\repository\org\apache\maven\maven-parent\5\maven-parent-5.pom.lastUpdated -> [Help 1]{noformat} > Download dependency POMs in parallel in BF collector > ---------------------------------------------------- > > Key: MRESOLVER-7 > URL: https://issues.apache.org/jira/browse/MRESOLVER-7 > Project: Maven Resolver > Issue Type: Improvement > Components: Resolver > Affects Versions: Aether 1.0.2 > Reporter: Harald Wellmann > Assignee: Tamas Cservenak > Priority: Major > Fix For: 1.9.0 > > Attachments: resolve_deps.png, resolver.log > > Time Spent: 40m > Remaining Estimate: 0h > > h3. Background > When building a project with dependencies not yet available in the local > repository, I noticed that Maven 3.3.9/Aether 1.0.2 first downloads the > dependency POMs _sequentially_ and then proceeds downloading the dependency > JARs with up to 5 threads _in parallel_. > Due to this, when first building a project with a large number of > dependencies, downloading a large number of small POMs may take a lot longer > than downloading the much larger JARs, or even longer than building the > project itself, especially when a repository manager is used which increases > the download latency. > h3. Enhancement > Download POMs of (transitive) dependencies in parallel to significantly speed > up initial builds of large projects. -- This message was sent by Atlassian Jira (v8.20.10#820010)