Can't get localRepositoryPath option to work with install:install-file

View: New views
2 Messages — Rating Filter:   Alert me  

Can't get localRepositoryPath option to work with install:install-file

by Hydock, Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: Can't get localRepositoryPath option to work with install:install-file

by Anders Hammar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What version of the install plugin are you using? The localRepositoryPath
option was introduced in version 2.2, could it be that you're using an older
version? If so, try forcing to newer version!

/Anders

On Fri, Oct 30, 2009 at 19:42, Hydock, Thomas [USA]
<hydock_thomas@...>wrote:

> 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.
>