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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
