Hello, Check this http://maven.apache.org/plugins/maven-eclipse-plugin/m2eclipse-mojo.html#downloadSources
2009/10/21 Lewis, Eric <[email protected]> > Yes, m2eclipse can do that: You can right click on the dependency and > choose to download the sources. > However, I don't know whether you can do that for all dependencies at once. > > Best regards, > Eric > > > -----Ursprüngliche Nachricht----- > > Von: Roland Asmann [mailto:[email protected]] > > Gesendet: Mittwoch, 21. Oktober 2009 10:21 > > An: Maven Users List > > Betreff: Re: installing src or javadoc into local repository > > > > Personally I use the maven-eclipse-plugin for that... > > > > mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true > > > > Not sure if the M2Eclipse -plugin can do the same, maybe > > someone who knows can > > shed a light (or already did, working through the list of > > unread messages as > > I write this). > > > > Roland > > > > > > On Wednesday 21 October 2009 05:16, jpswain wrote: > > > I looked at the link but I still have these questions: > > > Is there any sane way to simply tell maven, "download and > > install src & > > > javadoc for all artifacts in local repository"? > > > > > > If not is their at least a way to say, "install this jar > > with javadoc & > > > src, AND ALSO the javadoc & src of all its transitive > > dependencies? I'm > > > having a heck of a time with this! > > > > > > Thanks, > > > Jamie > > > > > > Sean Davis-5 wrote: > > > > On Fri, Oct 2, 2009 at 8:35 PM, Roland Asmann > > <[email protected]> > > > > > > > > wrote: > > > >> Check the install-mojo for this: > > > >> > > http://maven.apache.org/plugins/maven-install-plugin/install-f > > ile-mojo.h > > > >>tml > > > >> > > > >> Reinstall the jar into your repository and add the 'javadoc' and > > > >> 'sources' > > > >> switches or install them separately with the 'classifier' switch. > > > > > > > > Thanks, Roland. That is exactly what I needed. > > > > > > > >>> I apologize for the naive question in advance. I have > > installed an > > > >>> external jar file into my local repository--very easy. > > The jar file > > > >>> was built using ant as part of a third-party project. > > I would now > > > >>> like to add the source and/or the javadocs to my local > > repository, > > > >>> also. I have the source (in src/java/....) and can generate the > > > >>> javadoc. How can I install these files into my local > > repository (so > > > >>> that I have the equivalent of the "download sources and > > javadocs")? > > > >>> > > > >>> Thanks, > > > >>> Sean > > > >>> > > > >>> > > --------------------------------------------------------------------- > > > >>> To unsubscribe, e-mail: [email protected] > > > >>> For additional commands, e-mail: [email protected] > > > >> > > > >> > > --------------------------------------------------------------------- > > > >> To unsubscribe, e-mail: [email protected] > > > >> For additional commands, e-mail: [email protected] > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [email protected] > > > > For additional commands, e-mail: [email protected] > > > > -- > > Roland Asmann > > > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > > Bäckerstrasse 1/2/7 > > A-1010 Wien > > FN 266155f, Handelsgericht Wien > > > > Tel.: +43/1/513 88 77 - 27 > > Fax.: +43/1/513 88 62 > > Email: [email protected] > > Web: www.cfc.at > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Regards, Alexander
