Well, I don't know if you're using m2eclipse, but with that it's possible. Just 
open the Maven Dependencies, right-click on some jar and choose "Maven... 
download sources".

Best regards,
Eric

-----Ursprüngliche Nachricht-----
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Freitag, 10. Juli 2009 00:08
An: Maven Users List
Betreff: Re: Getting source code for existing JARs

Hi,

Not the magically way I think you're asking for, no. Not to my knowledge anyhow.
What you could do, is to try to find out what artifact you have an
then, if you're lucky, the source code might exist in a repository
(central for instance). One way to find out what artifact you have is
to use its checksum and then use a Nexus instance to try to find a
match. You can find some info about this in one of Jason van Zyl's
blog posts:
http://www.sonatype.com/people/2009/04/mavenizing-the-appengine-sdk/

/Anders

On Thu, Jul 9, 2009 at 21:55, Singhal, Pulkit<pulkit.sing...@hp.com> 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!
>

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


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

Reply via email to