You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/05/24 18:02:04 UTC

[jira] [Moved] (MRESOLVER-25) Resolving dependencies is not thread-safe

     [ https://issues.apache.org/jira/browse/MRESOLVER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov moved MNG-6156 to MRESOLVER-25:
----------------------------------------------

    Affects Version/s:     (was: 3.3.9)
                       Maven Artifact Resolver 1.0.3
          Component/s:     (was: Artifacts and Repositories)
                       resolver
             Workflow: jira  (was: Default workflow, editable Closed status)
                  Key: MRESOLVER-25  (was: MNG-6156)
              Project: Maven Resolver  (was: Maven)

> Resolving dependencies is not thread-safe
> -----------------------------------------
>
>                 Key: MRESOLVER-25
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-25
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: resolver
>    Affects Versions: Maven Artifact Resolver 1.0.3
>            Reporter: Roland Illig
>         Attachments: dependency-list.txt, dependency-list-x.zip, wagon-not-threadsafe.zip
>
>
> When building a multi-module project in parallel, Maven updates the local Maven repository without taking into account that other threads or processes might do the same at the same time.
> To reproduce:
> 1.  unpack the attached project
> 2.  {{mvn dependency:list -U -B -T100}}
> See the attached {{dependency-list.txt}} for an example output.
> First thing to notice is that the dependency is downloaded 100 times. This is unexpected, since the Reactor should coordinate all the modules.
> Second thing to notice is that the build fails, since a dependency "cannot be found". This is wrong, since the dependency _can_ be found, it's just not processed properly.
> I suspect the {{legacy.DefaultWagonManager}} to be the cause of this, since the typical error messages are:
> * {{"Downloaded file does not exist: "}}
> * {{"Error copying temporary file to the final destination: "}}
> * {{"*** CHECKSUM FAILED - RETRYING"}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)