I use maven 3.0.3 and have tried to generate pom for third-party jar like this:
mvn install:install-file -Dfile=cobra.jar -DgroupId=com.cobra -Darti
It worked for me when I changed Powershell to Cygwin. Powershell is somehow parsing the command line argument incorrectly.