You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Francesco Tinti (JIRA)" <ji...@codehaus.org> on 2006/04/05 12:29:48 UTC

[jira] Created: (MNG-2203) Problem with duplicates

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

         Key: MNG-2203
         URL: http://jira.codehaus.org/browse/MNG-2203
     Project: Maven 2
        Type: Bug

  Components: POM  
 Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
    Reporter: Francesco Tinti
 Attachments: pomerr.zip

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


[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Carlos Sanchez updated MNG-2203:
--------------------------------

              Version: 2.1
                       2.0.3
    Testcase included: yes
            Component:     (was: POM)
                       Dependencies

> Problem with duplicates
> -----------------------
>
>          Key: MNG-2203
>          URL: http://jira.codehaus.org/browse/MNG-2203
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.1, 2.0.3
>  Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>     Reporter: Francesco Tinti
>  Attachments: pomerr.zip
>
>
> 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


[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

John Casey updated MNG-2203:
----------------------------

    Fix Version: 2.0.5

> Problem with duplicates
> -----------------------
>
>          Key: MNG-2203
>          URL: http://jira.codehaus.org/browse/MNG-2203
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.1, 2.0.3
>  Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>     Reporter: Francesco Tinti
>      Fix For: 2.0.5
>  Attachments: pomerr.zip
>
>
> 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


[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Maria Odea Ching updated MNG-2203:
----------------------------------

    Remaining Estimate: 20 hours  (was: 0 minutes)

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: pomerr.zip
>
>          Time Spent: 7 hours
>  Remaining Estimate: 20 hours
>
> 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Maria Odea Ching updated MNG-2203:
----------------------------------

    Attachment: MNG-2203-maven.patch

Attached patch file for this issue.
The modules that were changed are maven-core and maven-project. When a duplicate dependency is found in the pom, it will be logged in the console and the most recent version of the dependency will be used for the project.

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: MNG-2203-maven.patch, pomerr.zip
>
>          Time Spent: 1 day, 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Maria Odea Ching updated MNG-2203:
----------------------------------

    Remaining Estimate: 13 hours  (was: 20 hours)

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: pomerr.zip
>
>          Time Spent: 7 hours
>  Remaining Estimate: 13 hours
>
> 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Maria Odea Ching updated MNG-2203:
----------------------------------

    Due Date: 15/Aug/06  (was: 14/Aug/06)

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: pomerr.zip
>
>          Time Spent: 7 hours
>  Remaining Estimate: 20 hours
>
> 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Maria Odea Ching updated MNG-2203:
----------------------------------

    Due Date: 14/Aug/06

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.5
>
>         Attachments: pomerr.zip
>
>          Time Spent: 7 hours
>  Remaining Estimate: 20 hours
>
> 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=all ]

Kenney Westerhof updated MNG-2203:
----------------------------------

    Fix Version/s:     (was: 2.0.5)
                   2.0.6

> 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.1, 2.0.3
>         Environment: Windows XP SP 2 - JDK 1.5.06 - Maven 2.1-SNAPSHOT 
>            Reporter: Francesco Tinti
>         Assigned To: Maria Odea Ching
>             Fix For: 2.0.6
>
>         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

        

Re: [jira] Closed: (MNG-2203) Problem with duplicates

Posted by Jason van Zyl <ja...@maven.org>.
On 3 Jun 07, at 7:13 AM 3 Jun 07, Kenney Westerhof wrote:

> 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.
>

In the same model it should crap out. It should be detected in IDE  
integration but during model validation it should be trapped.

http://jira.codehaus.org/browse/MNG-3031

> 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: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [jira] Closed: (MNG-2203) Problem with duplicates

Posted by Kenney Westerhof <ke...@apache.org>.
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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [jira] Closed: (MNG-2203) Problem with duplicates

Posted by Brett Porter <br...@apache.org>.
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-2203) Problem with duplicates

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Updated: (MNG-2203) Problem with duplicates

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-2203:
------------------------------

    Fix Version/s:     (was: 2.0.x)

> 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
>         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