You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Brett Porter <br...@apache.org> on 2007/06/01 06:47:38 UTC

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

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


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