I\'ve been doing this for all of the jar files that my Spring MVC project needs:
call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversi
I've been doing the same that you do with the command line, but by configuring maven-install-plugin
in my POM (please read the note at the end):
org.apache.maven.plugins
maven-install-plugin
install-vegetables
initialize
install-file
${project.basedir}/lib/vegetables-1.0.jar
vegetables
potatoes
1.0
jar
install-minerals
initialize
install-file
${project.basedir}/lib/minerals-1.0.jar
minerals
rocks
1.0
jar
It is much less efficient, because files get installed over and over, but it is much less annoying than making it manually. Anyway, I think you should give it a try.