I don't know where you read that -DlocalRepository overrided the local
repository path, but I don't think this has ever worked. As Wendy says, use
-Dmaven.repo.local

Vincent


2010/11/4 Holger Hoffstaette <[email protected]>

> On Thu, 04 Nov 2010 13:08:41 +0100, Jochen Wiedmann wrote:
>
> > you aren't writing how you do specify the "local repository path". My
> > assumption would be that you need to use the Maven option -s or
> --settings
> > and use the "localRepository" element in the given settings file, as
> > specified by the settings XSD. [1] Is that what you are doing?
>
> No, I'm doing the much more obvious :-) and try to pass the repo path into
> the comand line invocation. Sorry for not being more clear.
>
> To reproduce, take any project and run:
> mvn install -DlocalRepository=/some/path
>
> ..which is happily ignored and the project is installed into the default
> location (or whatever is defined in settings.xml). But changing the
> settings won't work as this is supposed to be part of an automated build.
>
> The -D value never sticks, regardless of position in the command line or
> platform (tested on Windows and Linux). A trace with -X always shows the
> default local repository being used by the install plugin.
>
> thanks
> Holger
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to