« Return to Thread: Getting source code for existing JARs

Re: Getting source code for existing JARs

by Anders Hammar :: Rate this Message:

Reply to Author | View in Thread

If I didn't misunderstand the situation, the poster has a runtime
system with a bunch of jars. Thus, no poms.

/Anders

On Fri, Jul 10, 2009 at 02:52, Barrie Treloar<baerrach@...> wrote:

> 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@...
>
>

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

 « Return to Thread: Getting source code for existing JARs