Not quite the answer to your question, but mvn dependency:sources will download all available source jars for a project's dependencies (including transitive dependencies). There's no dependency:javadocs AFAIK, but it probably wouldn't be that hard to do (based on the source of the sources mojo).
Justin -----Original Message----- From: jpswain [mailto:jpsw...@gmail.com] Sent: Tuesday, October 20, 2009 11:16 PM To: users@maven.apache.org Subject: Re: installing src or javadoc into local repository 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 <roland.asm...@cfc.at> > wrote: >> Check the install-mojo for this: >> http://maven.apache.org/plugins/maven-install-plugin/install-file-moj >> o.html >> >> 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: 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 >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/installing-src-or-javadoc-into-local-repository-tp25724190p25985910.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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