I agree, this is definitely an issue.
If you specify the same dep (a:a) twice in the same pom,
maven doesn't say anything, but takes the last one.

Brett Porter wrote:
Is this still an issue though? Maybe it should be left open for a simpler fix.

- Brett

On 01/06/2007, at 2:19 PM, Jason van Zyl (JIRA) wrote:


[ http://jira.codehaus.org/browse/MNG-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl closed MNG-2203.
------------------------------

      Assignee:     (was: Maria Odea Ching)
    Resolution: Won't Fix

That patch is way to complicated for finding duplicates. We really should fail on duplicate entries.

Problem with duplicates
-----------------------

                Key: MNG-2203
                URL: http://jira.codehaus.org/browse/MNG-2203
            Project: Maven 2
         Issue Type: Bug
         Components: Dependencies
   Affects Versions: 2.0-alpha-1, 2.0.3
        Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT
           Reporter: Francesco Tinti
            Fix For: 2.0.x

        Attachments: MNG-2203-maven.patch, pomerr.zip

         Time Spent: 1 day, 6 hours, 30 minutes
 Remaining Estimate: 0 minutes

Declare in POM a duplicate group-artifact dependency but with different versions.: there's no log of duplicate entry. Maven will also take care only of the latest dependency, so if the version is ancient of the other, you can obtain (of course) compilation error. In attachment a simple demonstration with a specific commons-io 1.2 function.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to