mvn dependency:sources and/or mvn dependency:resolve
-Dclassifier=sources  or -Dclassifier=javadoc

if you use m2eclipse, then it will get the sources/javadocs
automatically as needed.

On Sun, Nov 14, 2010 at 12:26 PM, piloupy GOTTAPIL <[email protected]> wrote:
> Hi,
>
> I've search for nearly half a day, and I didn't manage to find my answer,
> so...
>
> Given a groupId:artifactId:version, how can I download it with sources &
> javadocs into my local repository ?
>
> I've found that I can download it using :
>
> mvn dependency:get -Dartifact=javax.servlet:servlet-api:2.5
> -DrepoUrl=central
>
> (for javax.servlet:servlet-api:2.5 as an example)
>
> but the sources & javadocs aren't downloaded.
>
> I've tried :
>
> mvn dependency:get -Dartifact=javax.servlet:servlet-api:2.5
> -DrepoUrl=central -DdownloadSources=true -DdownloadJavadocs=true
>
> but it doesn't work.
>
> Someone knows have this can be achieved, please ?
>
> Thanks,
>
> piloupy
>
> ---------------------------------------------------------------------
> 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]

Reply via email to