The docs on the mvn install plugin state: mvn install:install-file -Dfile=your-artifact-1.0.jar \ [-DpomFile=your-pom.xml] \ [-Dsources=src.jar] \ [-Djavadoc=apidocs.jar] \ [-DgroupId=org.some.group] \ [-DartifactId=your-artifact] \ [-Dversion=1.0] \ [-Dpackaging=jar] \ [-Dclassifier=sources] \ [-DgeneratePom=true] \ [-DcreateChecksum=true]
So I could build a bash shell script that executes the above $mvn install command for each jar that I want to install into the local repo. What I want to do is to put all the options above into a pom.xml such that the user would only have to run a single maven profile and type only: $mvn -P init and have this profile run the install plugin run on each of about 20 dot jar files in lib/. I have seen this done before on a project but did not write the code nor do I have a copy of the code with me. I know it is possible but can't find any documentation on how to put options to $mvn install inside the pom.xml file (instead of the command line). -- View this message in context: http://www.nabble.com/How-to-use-mvn-install-but-have-all-options-in-the-pom.xml--tp24739597p24739597.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org