maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <belingue...@gmail.com>
Subject Re: Does maven eclipse plugin downloads unnecesary artifacts?
Date Fri, 18 Nov 2011 12:47:18 GMT
Thanks Barrie!

2011/11/18 Barrie Treloar <baerrach@gmail.com>:
> On Fri, Nov 18, 2011 at 6:19 AM, Gabriel Belingueres
> <belingueres@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


Mime
View raw message