On Fri, Nov 18, 2011 at 6:19 AM, Gabriel Belingueres <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
