maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Help understanding install:install-file and -Dsources or -Djavadoc
Date Sat, 12 Dec 2009 11:02:51 GMT
What version of the plugin are you using? sources and javadoc params were
added in v2.3.

/Anders

On Sat, Dec 12, 2009 at 02:15, Jonathan Gold <jgold.bg@gmail.com> wrote:

> Based on what I read in the install-file doc here:
>
>
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
>
> I was under the impression that the following command line would install
> local
> binary, javadoc, and source jars:
>
>    mvn install:install-file \
>        -DgroupId=com.group \
>        -DartifactId=foo \
>        -Dversion=1.0 \
>        -DgeneratePom=true \
>        -Dfile=foo.jar \
>        -Dsources=foo-sources.jar \
>        -Djavadoc=foo-javadoc.jar \
>        -Dpackaging=jar
>
> would install all three jars in my local repository. I found that it only
> installed the main one (-Dfile). When I ran with --debug, I saw that the
> -Dsources and -Djavadoc values didn't even appear to be read at all by the
> install mojo.
>
> I searched through the JIRA issues for install, and saw one from 2008
> (maybe
> 2006) in which the -Dclassifier option was added, and I can in fact run
> three
> different invocations, one for each classifier (none/default, sources, and
> javadoc) and pointing -Dfile at the appropriate jar. It would be nicer to
> make
> it all work in the single command line though, so can anyone see if I'm
> missing
> something?
>
> Thanks mavenites,
>
> jon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message