You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Szczepan Faber <sz...@gmail.com> on 2006/03/24 16:41:24 UTC
[M2] Is there a way to automatically download sources for plugins?
Is there a way to automatically download sources for plugins?
E.g. When I type 'mvn compile' the maven-compiler-plugin is
automatically downloaded into local repository. Where can I find
sources for that? (Yes, I know I can look at
http://maven.apache.org/plugins/maven-compiler-plugin/source-repository.html
and checkout...) Can I set maven to download plugins with sources?
Thanks,
Szczepan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] Is there a way to automatically download sources for plugins?
Posted by Wayne Fay <wa...@gmail.com>.
This will only work if the plugins have sources loaded in the ibiblio
repo. You can check yourself by going to:
http://www.ibiblio.org/maven2/<group>/.../<artifactId>/<version>/
Plugins are generally under group org.apache.maven.plugins.
You can download source files by adding the following dependency to
your pom.xml:
<dep>
<group>
<art>
<version>
<scope>
<classifier>sources</classifier>
</dep>
You can pull down the javadoc with:
<classifier>javadoc</classifier>
There's probably a better/easier way but this should work, again,
assuming the sources have been uploaded into the repo in the first
place. Otherwise you'll need to pull sources from SVN yourself.
Wayne
On 3/24/06, Szczepan Faber <sz...@gmail.com> wrote:
> Is there a way to automatically download sources for plugins?
>
> E.g. When I type 'mvn compile' the maven-compiler-plugin is
> automatically downloaded into local repository. Where can I find
> sources for that? (Yes, I know I can look at
> http://maven.apache.org/plugins/maven-compiler-plugin/source-repository.html
> and checkout...) Can I set maven to download plugins with sources?
>
> Thanks,
> Szczepan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>