You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Adam Hardy <ad...@cyberspaceroad.com> on 2008/12/08 12:48:35 UTC
getting 3rd party javadoc for deps into local repo
I'm using
mvn dependency:source -Dclassifier=javadoc
to try to get maven to retrieve the javadoc jars for all my dependencies from
the central repo and put them into my local repo.
It's not working though. In fact, it seems that the 'classifier' option is
completely ignored. Maybe I'm barking up the wrong tree here? Doesn't the
example on the plugin website imply this usage with its description:
"Specify classifier to look for. Example: sources"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: getting 3rd party javadoc for deps into local repo
Posted by Nick Stolwijk <ni...@gmail.com>.
I think the only way at the moment is to use mvn eclipse:eclipse
-DdownloadJavadocs=true perhaps followed by an mvn eclipse:clean to
get rid of the extra files. It seems the eclipse plugin has extra code
to resolve javadoc of the dependencies.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Mon, Dec 8, 2008 at 12:48 PM, Adam Hardy
<ad...@cyberspaceroad.com> wrote:
> I'm using
>
> mvn dependency:source -Dclassifier=javadoc
>
> to try to get maven to retrieve the javadoc jars for all my dependencies
> from the central repo and put them into my local repo.
>
> It's not working though. In fact, it seems that the 'classifier' option is
> completely ignored. Maybe I'm barking up the wrong tree here? Doesn't the
> example on the plugin website imply this usage with its description:
>
> "Specify classifier to look for. Example: sources"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: getting 3rd party javadoc for deps into local repo
Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Dec 8, 2008 at 6:48 AM, Adam Hardy
<ad...@cyberspaceroad.com> wrote:
> I'm using
>
> mvn dependency:source -Dclassifier=javadoc
>
> to try to get maven to retrieve the javadoc jars for all my dependencies
> from the central repo and put them into my local repo.
>
> It's not working though.
The 'sources' goal (typo above?) says it's a "Goal that resolves the
project source dependencies from the repository" so I wouldn't expect
it to work for javadocs. (Most likely it hard-codes the classifier to
get the -sources jar, which would explain the behavior you see.) I
agree the docs are confusing, listing the classifier as something you
can set.
http://maven.apache.org/plugins/maven-dependency-plugin/sources-mojo.html
Either a new goal like dependency:javadoc might be in order, or try
one of the other goals and see if one of them will respect
-Dclassifier on the command line.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org