maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Correcting a groupID
Date Mon, 23 Aug 2010 16:05:44 GMT
2010/8/23 Arnaud Héritier <aheritier@gmail.com>:
> I think it could help you :
> http://maven.apache.org/guides/mini/guide-relocation.html

Thanks - but it does not really cover the Apache case where a shared
repo is used.

> Cheers
>
> Arnaud
>
> On Aug 23, 2010, at 2:20 PM, sebb wrote:
>
>> Apache Commons NET currently uses the groupId commons-net. However, it
>> should really use the groupId org.apache.commons.
>>
>> Is it possible to set up the Maven repos so that this change is
>> transparent to users?
>>
>> Or does changing a groupId necessarily involve change for end-users?
>>
>> ==
>>
>> AIUI, a redirect pom can be created, which will cause references to
>> commons-net to be seen as org.apache.commons, at least when
>> downloading.
>>
>> For example:
>> NET 2.0 groupId = commons-net
>> Create NET 2.x with groupId org.apache.commons
>>
>> Then a project that references commons-net:commons-net:2.x will
>> download org.apache.commons:commons-net:2.x
>> (though there will be a warning logged)
>>
>> [For example, see JDom 1.1, which changed groupId jdom => org.jdom]
>>
>> However, what happens if a project has (transitive) dependencies on
>> both versions of Net?
>> Does Maven know how to resolve these correctly so that only the 2.x
>> release of Net is used?
>>
>> Or is it necessary to change the Net package name in order to avoid conflict?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Mime
View raw message