Maven is an awesome build tool for JAVA, but it has some long parameter names that I don’t like to remember, so I put my often used tasks of maven in batch files.
install.bat
mvn install:install-file -Dfile=%1 -DgroupId=%2 -DartifactId=%3 -Dversion=%4 -Dpackaging=pom -DgeneratePom=true
This installs the specified .jar file in the local repository located in
C:\Documents and Settings\*User*\.m2\repository
where *User* is your username. Four arguments are required: jar_file, group, artifact and version.
new.bat
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=%1 -DartifactId=%2
I use this one to create new projects for stand-alone java programs. Two arguments required: group and artifact.
webnew.bat

