On Fri, Jul 10, 2009 at 5:25 AM, Singhal, Pulkit<
pulkit.singhal@...> wrote:
> Hello,
>
> I wanted to know if maven can be used to fetch source code for existing jars on a system?
> Can I simply point maven to a jar on my system and expect it to do its best to fetch the source code for the correct version according to my jar from its global repository?
> Can I do this via an eclipse plugin?
>
> Thanks!
>
If you have your dependencies declared correctly in a pom you can use
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
to download both the source jar and the javadoc jar (you may need the
javadoc if the source does not exist)
If you happen to also be using eclipse as your IDE then everything is
all setup and ready for importing your projects.
If not, you can find the -sources and -javadoc jars in the same
directory as the base jar in your local m2 repository.
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...