[ 
https://issues.apache.org/jira/browse/MDEP-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903642#comment-17903642
 ] 

ASF GitHub Bot commented on MDEP-776:
-------------------------------------

elharo commented on code in PR #463:
URL: 
https://github.com/apache/maven-dependency-plugin/pull/463#discussion_r1873274957


##########
src/it/projects/copy-dependencies-with-conflict/pom.xml:
##########
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>5</version>

Review Comment:
   not really. Removed.





> copy-dependencies overwrites artifacts of the same artifact id
> --------------------------------------------------------------
>
>                 Key: MDEP-776
>                 URL: https://issues.apache.org/jira/browse/MDEP-776
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 3.1.2, 3.2.0
>            Reporter: Nikolaos Georgiou
>            Assignee: Elliotte Rusty Harold
>            Priority: Major
>
> We have a project which has 2 dependencies of different groupId but same 
> artifactId and version, e.g. com.acme:foo:1.2.3 and com.ecorp:foo:1.2.3
> We use the copy-dependencies goal of the plugin to copy libraries under 
> target/lib folder.
> Actual Result:
>  * only one foo.jar survives in the target/lib folder. The other one silently 
> gets overwritten. This leads to difficult to diagnose runtime errors, as one 
> JAR is missing.
>  
> Expected Result:
>  * it should at least give a warning, if not an error, that it has 
> overwritten an artifact during this process
>  
> Known workaround:
>  * we activated useRepositoryLayout, which allows both artifacts to survive 
> under a directory structure, which complicates a bit our classpath building 
> process (from target/lib/* we need to find all the JARs with a bit of bash 
> glue)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to