You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Torsten Werner <ma...@googlemail.com> on 2008/11/23 11:27:05 UTC
mvn install -Ddestdir=...?
Hi,
tools from the non Java world like automake and cmake support a
variable DESTDIR:
make install DESTDIR=...
will not install into e.g. /usr/bin but into $DESTDIR/usr/bin. Is
something similar possible with mvn? I want the artifacts to be
installed into ${destdir}/${settings.localRepository} instead of
${settings.localRepository}.
And BTW, can the localRepository be set from the command line? Something like
mvn <phase> -Dsettings.localRepository=/my/local/repo
does not seem to work...
Cheers,
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn install -Ddestdir=...?
Posted by Baptiste MATHUS <ml...@batmat.net>.
Hi,
No, it's not. That's not how maven works. But you can deploy where you want
if you configure it in the settings.xml or directly in the pom.xml.
See http://maven.apache.org/plugins/maven-install-plugin/install-mojo.htmlfor
the options of the Install Mojo.
The localRepository has to be set in the global settings.xml or in the
~/.m2/settings.xml file.
Cheers.
2008/11/23 Torsten Werner <ma...@googlemail.com>
> Hi,
>
>
> tools from the non Java world like automake and cmake support a
> variable DESTDIR:
>
> make install DESTDIR=...
>
> will not install into e.g. /usr/bin but into $DESTDIR/usr/bin. Is
> something similar possible with mvn? I want the artifacts to be
> installed into ${destdir}/${settings.localRepository} instead of
> ${settings.localRepository}.
>
> And BTW, can the localRepository be set from the command line? Something
> like
>
> mvn <phase> -Dsettings.localRepository=/my/local/repo
>
> does not seem to work...
>
>
> Cheers,
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !