I'm trying to install a JAR file to a custom local repository on my file 
system.  I am using the following command:

mvn install:install-file
    -Dfile=license.jar
    -DgroupId=test.group
    -DartifactId=license
    -Dversion=1.2.3.4
    -Dpackaging=jar
    -DlocalRepositoryPath=C:\temp


I would expect that the license.jar file would be installed to C:\temp, however 
it gets installed to my default local Maven repository (C:\Documents and 
Settings\...\.m2\repository).  It's like the "localRepositoryPath" value is 
being completely ignored.  Am I doing something wrong?  How can I install an 
artifact to a custom location on my file system using mvn install:install-file?

Thank you.

- T.C.

Reply via email to