You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/02/22 10:07:06 UTC
[m2] how to use in pom ?
Hello,
I've just trying to migrate my project to maven2.
It is a shared component, so I have to setup a well designed POM to make
transitive dependencies works as expected.
It defines optional classes to be use with other librairies, that I've
marked in POM as <optional>true</optional>
If I do this, mvn install doesn't download those jars and compilation fails.
If I don't mark them as optional, maven2 downloads librairies from repo
and all is ok, but resulting POM isn't what I expected.
What's wrong ?
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] how to use in pom ?
Posted by Emmanuel Venisse <em...@venisse.net>.
Whick project failed? your shared component project or a project that use it?
Emmanuel
Nicolas De Loof a écrit :
>
> Hello,
>
> I've just trying to migrate my project to maven2.
> It is a shared component, so I have to setup a well designed POM to make
> transitive dependencies works as expected.
> It defines optional classes to be use with other librairies, that I've
> marked in POM as <optional>true</optional>
> If I do this, mvn install doesn't download those jars and compilation
> fails.
> If I don't mark them as optional, maven2 downloads librairies from repo
> and all is ok, but resulting POM isn't what I expected.
>
> What's wrong ?
>
> Nico.
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive
> this message in error, please notify the sender immediately and delete
> all copies of this message.
>
>
> ---------------------------------------------------------------------
> 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
Re: [m2] how to use in pom ?
Posted by Nicolas De Loof <ni...@capgemini.com>.
Sorry, du to PATH error I was running maven 2.0, not 2.0.2
It works fine now.
Stephen Duncan a écrit :
> What version of Maven are you using? There are bugs about this, but
> they all appear to have been resolved prior to 2.0.2.
>
> -Stephen
>
> On 2/22/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>
>> Hello,
>>
>> I've just trying to migrate my project to maven2.
>> It is a shared component, so I have to setup a well designed POM to make
>> transitive dependencies works as expected.
>> It defines optional classes to be use with other librairies, that I've
>> marked in POM as <optional>true</optional>
>> If I do this, mvn install doesn't download those jars and compilation fails.
>> If I don't mark them as optional, maven2 downloads librairies from repo
>> and all is ok, but resulting POM isn't what I expected.
>>
>> What's wrong ?
>>
>> Nico.
>>
>>
>>
>>
>> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] how to use in pom ?
Posted by Stephen Duncan <st...@gmail.com>.
What version of Maven are you using? There are bugs about this, but
they all appear to have been resolved prior to 2.0.2.
-Stephen
On 2/22/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>
> Hello,
>
> I've just trying to migrate my project to maven2.
> It is a shared component, so I have to setup a well designed POM to make
> transitive dependencies works as expected.
> It defines optional classes to be use with other librairies, that I've
> marked in POM as <optional>true</optional>
> If I do this, mvn install doesn't download those jars and compilation fails.
> If I don't mark them as optional, maven2 downloads librairies from repo
> and all is ok, but resulting POM isn't what I expected.
>
> What's wrong ?
>
> Nico.
>
>
>
>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Stephen Duncan Jr
www.stephenduncanjr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org