I have this mvn command
mvn install:install-file -DgroupId=i.hate.james.blunt -DartifactId=yourartifactid... -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/jarfile
And I want to transfer it to a command in vim, at the moment I have this
command -nargs=* MvnAddToRepositoy :!mvn install:install-file -DgroupId=i.hate.james.blunt -DartifactId=<arg1> -Dversion=1.0 -Dpackaging=jar -Dfile=<arg2>
I am unable to find this in vim docs or an example on the net.
Can anyone help?
Edit
The error message above was saying the command it was trying
mvn install:install-file -DgroupId=mx.com.root -DartifactId=<arg1> -Dversion=1.0 -Dpackaging=jar -Dfile=<arg2>'
command -nargs=* Ls :!ls -ltr <args>seems to work fine here. Are you getting any errors?