You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by marcelo <d2...@gmail.com> on 2011/07/26 20:23:25 UTC
Maven dependencies
Hi,
I have project A which dependens on 15 jars , when I build project A, I
include all dependenices in the jar.. (shade)
I have project B which dependes on project A
when I build project B, it downloads all dependencies of project A
I would like to build project B and have maven just download project A
artifact and not all dependencies of project A.
thanks,
--
View this message in context: http://maven.40175.n5.nabble.com/Maven-dependencies-tp4635814p4635814.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven dependencies
Posted by Benson Margulies <bi...@gmail.com>.
Um, isn't this the job of
http://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#createDependencyReducedPom?
Shouldn't the shaded artifact's pom (as classified or as replacing the
main artifact) not call out all the transitive deps?
On Tue, Jul 26, 2011 at 7:41 PM, Kalle Korhonen
<ka...@gmail.com> wrote:
> Since you are including the dependencies in project A, you should
> declare them with scope "provided".
>
> Kalle
>
>
> On Tue, Jul 26, 2011 at 11:23 AM, marcelo <d2...@gmail.com> wrote:
>> Hi,
>>
>> I have project A which dependens on 15 jars , when I build project A, I
>> include all dependenices in the jar.. (shade)
>>
>> I have project B which dependes on project A
>>
>> when I build project B, it downloads all dependencies of project A
>>
>> I would like to build project B and have maven just download project A
>> artifact and not all dependencies of project A.
>>
>> thanks,
>>
>>
>> --
>> View this message in context: http://maven.40175.n5.nabble.com/Maven-dependencies-tp4635814p4635814.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> 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
Re: Maven dependencies
Posted by Kalle Korhonen <ka...@gmail.com>.
Since you are including the dependencies in project A, you should
declare them with scope "provided".
Kalle
On Tue, Jul 26, 2011 at 11:23 AM, marcelo <d2...@gmail.com> wrote:
> Hi,
>
> I have project A which dependens on 15 jars , when I build project A, I
> include all dependenices in the jar.. (shade)
>
> I have project B which dependes on project A
>
> when I build project B, it downloads all dependencies of project A
>
> I would like to build project B and have maven just download project A
> artifact and not all dependencies of project A.
>
> thanks,
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Maven-dependencies-tp4635814p4635814.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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