You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Salvador Diaz <sd...@m6.fr> on 2008/05/27 17:28:11 UTC

Configuring settings through MAVEN_OPTS

Hi all,

What do you have to add to MAVEN_OPTS to tell maven to use a specific 
settings.xml ?

Thanks,

Salvador Diaz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Configuring settings through MAVEN_OPTS

Posted by Heinrich Nirschl <he...@gmail.com>.
On Tue, May 27, 2008 at 5:48 PM, Heinrich Nirschl
<he...@gmail.com> wrote:
> On Tue, May 27, 2008 at 5:28 PM, Salvador Diaz <sd...@m6.fr> wrote:
>> Hi all,
>>
>> What do you have to add to MAVEN_OPTS to tell maven to use a specific
>> settings.xml ?
>
> Try mvn -h. Near the end of the list you will find:
>
> -s,--settings                 Alternate path for the user settings file
>
> -Henry
>

Sorry, I just recognized it does not work when put into MAVEN_OPTS.
You can only pass options for the JVM with this variable.

Another possibility would be to use an alias (if you are on *NIX) or a
small wrapper script.

- Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Configuring settings through MAVEN_OPTS

Posted by Heinrich Nirschl <he...@gmail.com>.
On Tue, May 27, 2008 at 5:28 PM, Salvador Diaz <sd...@m6.fr> wrote:
> Hi all,
>
> What do you have to add to MAVEN_OPTS to tell maven to use a specific
> settings.xml ?

Try mvn -h. Near the end of the list you will find:

-s,--settings                 Alternate path for the user settings file

-Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org