You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gabriel Belingueres <be...@gmail.com> on 2011/11/17 20:49:52 UTC

Does maven eclipse plugin downloads unnecesary artifacts?

Hi!

I usually use the maven eclipse plugin (v2.8) using the
downloadSources and downloadJavadocs properties, however I added some
runtime scoped dependency but the eclipse plugin downloads the
sources.jar and javadoc.jar too of that library (also no other
dependency depends on that runtime scoped library).

I agree beforehand that it is no harm to download the sources or
javadocs, I just wonder if it is really needed, it is a plugin bug or
it is just how maven works for all plugins.

Regards,
Gabriel

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


Re: Does maven eclipse plugin downloads unnecesary artifacts?

Posted by Gabriel Belingueres <be...@gmail.com>.
Thanks Barrie!

2011/11/18 Barrie Treloar <ba...@gmail.com>:
> On Fri, Nov 18, 2011 at 6:19 AM, Gabriel Belingueres
> <be...@gmail.com> wrote:
>> Hi!
>>
>> I usually use the maven eclipse plugin (v2.8) using the
>> downloadSources and downloadJavadocs properties, however I added some
>> runtime scoped dependency but the eclipse plugin downloads the
>> sources.jar and javadoc.jar too of that library (also no other
>> dependency depends on that runtime scoped library).
>>
>> I agree beforehand that it is no harm to download the sources or
>> javadocs, I just wonder if it is really needed, it is a plugin bug or
>> it is just how maven works for all plugins.
>
> I'm not really awake enough to remember the details, but I think the
> eclipse plugin needs to setup your classpath to also include the
> runtime dependencies.
> When configuring the classpath Eclipse does not know about Maven's
> scopes so everything is treated the same - i.e. attempting to get
> sources or javadocs.
> This may come in handy when you run your app inside eclipse and you
> find a bug in a runtime depenendency.
> When you debug and step into the .class file you will have the sources
> available.
>
> ---------------------------------------------------------------------
> 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: Does maven eclipse plugin downloads unnecesary artifacts?

Posted by Barrie Treloar <ba...@gmail.com>.
On Fri, Nov 18, 2011 at 6:19 AM, Gabriel Belingueres
<be...@gmail.com> wrote:
> Hi!
>
> I usually use the maven eclipse plugin (v2.8) using the
> downloadSources and downloadJavadocs properties, however I added some
> runtime scoped dependency but the eclipse plugin downloads the
> sources.jar and javadoc.jar too of that library (also no other
> dependency depends on that runtime scoped library).
>
> I agree beforehand that it is no harm to download the sources or
> javadocs, I just wonder if it is really needed, it is a plugin bug or
> it is just how maven works for all plugins.

I'm not really awake enough to remember the details, but I think the
eclipse plugin needs to setup your classpath to also include the
runtime dependencies.
When configuring the classpath Eclipse does not know about Maven's
scopes so everything is treated the same - i.e. attempting to get
sources or javadocs.
This may come in handy when you run your app inside eclipse and you
find a bug in a runtime depenendency.
When you debug and step into the .class file you will have the sources
available.

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