[ https://issues.apache.org/jira/browse/MDEP-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913612#comment-16913612 ]
Karl Heinz Marbaise commented on MDEP-657: ------------------------------------------ Unfortunately you are repeating things. I understood already that it happens on using {{-T 2C}} but I have clearly asked you to use {{mvn clean package}} to see if your project builds correctly without any issue (and deleting the local cache before). But you have simply ignored that... What I don't understand is why you need to install something for running integration tests? Integration tests run via maven-failsafe-plugin. Install in the Maven terms means to install a jar into the local cache {{$HOME/.m2/repository/}} which I don't understand why an integration needed such thing? I strongly recommend you to try the suggested approach and show if this works without any issue (where I have my doubts about). Also would it be helpful to have full set of pom files .... > Maven - Failing when two modules have same dependency and both trying to > download the dependency at the same time when Parallel flag is enabled. > ------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: MDEP-657 > URL: https://issues.apache.org/jira/browse/MDEP-657 > Project: Maven Dependency Plugin > Issue Type: Bug > Environment: Maven 3.6.1 > Reporter: Padma G > Priority: Major > > Maven Version 3.6.1 > command : mvn -U -T 2C -DskipTests=true clean install -s settings.xml > We have several modules with same dependency and it is failing when two are > downloading same dependency at the same time with below error. > if we remove parallel flag it will go through. But the build will be very > long. > Ideally it should wait and not fail? > {noformat} > [ERROR] Failed to execute goal on project content-model: Could not resolve > dependencies for project com.gehc.ei.zfp:content-model:jar:6011.0.1.8270: > Failed to collect dependencies at > com.gehc.ei.zfp:ei-logging-service:jar:6011.0.1.8109 -> > com.gehc.ei.zfp:atna-log-appender:jar:6011.0.1.8109: Failed to read artifact > descriptor for com.gehc.ei.zfp:atna-log-appender:jar:6011.0.1.8109: Could not > transfer artifact com.gehc.ei.zfp:atna-log-appender:pom:6011.0.1.8109 from/to > central (xxxx[/artifactory/maven-zfp-all|: > C:\Users\user\.m2\repository\com\gehc\ei\zfp\atna-log-appender\6011.0.1.8109\atna-log-appender-6011.0.1.8109.pom.part.lock > (The process cannot access the file because it is being used by another > process) -> [Help 1] > {noformat} > Any idea why it is behaving this way? > Regards, > Padma -- This message was sent by Atlassian Jira (v8.3.2#803003)