You should be able to get Maven to download and install javadocs and
sources by specifying the proper classifier in the dependency ie:

<dependency>
  <groupId/>
  <artifactId/>
  <version/>
  <classifier>javadoc</classifier>
</dependency>

Though this is really not something you'd normally do, as projects
don't really "depend" in the traditional sense on the Javadocs or
sources of another project.

Wayne

On 9/6/07, Juan Ignacio Garzón <[EMAIL PROTECTED]> wrote:
> I couldnt install a javadoc by adding the dependency to a pom and
> configuring maven to download javadocs (It said "Unable to get
> resource XXX from repository central", even if the javadoc was
> phisically in the remote repo).
>
> I downloaded a javadoc jar manually, and installed it using:
>
> mvn install:install-file -Dfile="C:\xxx\httpunit-1.6.2-javadoc.jar"
> -DgroupId=httpunit -DartifactId=httpunit -Dversion=1.6.2
> -Dpackaging=jar -Dclassifier=javadoc
>
> The javadoc was correctly installed in my configured local repository.
>
> I made the same thing with the sources, and they get correctly
> installed. The problem seems to be with automatically downloaded
> sources (and, maybe, javadocs).
>
>
> 2007/9/6, Wayne Fay <[EMAIL PROTECTED]>:
> > This is certainly odd. It might even be a bug.
> >
> > Where do javadocs land in your repo when Maven downloads them?
> >
> > Wayne
> >
> > On 9/6/07, Juan Ignacio Garzón <[EMAIL PROTECTED]> wrote:
> > > Hi!
> > >
> > > I configured maven to download the sources of JARs. I have created a
> > > local repository (a network drive in order to have a central
> > > repository on my company) in %home%/.m2/settings.xml:
> > >
> > > <localRepository>I:\repository</localRepository>
> > >
> > > This works fine for the binary jars, but the source jars are beeing
> > > downloaded into the default repository (%home%/.m2/repository)
> > >
> > > Is there a way to configure where sources are put after download?
> > >
> > > Thanks!
> > >
> > > ---------------------------------------------------------------------
> > > 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to