You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Moe, Vidar" <vi...@capgemini.com> on 2007/06/08 11:27:32 UTC

Settings.xml under source control?

Hi!
 
We would like to have the settings.xml file in a custom location to
easily being able to have it under source control. We can control the
placement of the settings.xml file by the 
 
-Dorg.apache.maven.user-settings
 
but it is cumersome for developers to add this param for every mvn
command they are going to run. - Can this parameter be applied globally
somehow, so that the developers do not have to add it everytime?
 
Thanks in advance,
 
Regards,
Vidar Moe


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.

Re: Settings.xml under source control?

Posted by Emmanuel Venisse <em...@venisse.net>.
We don't have something to set it globally but you can add it in your mvn script.

Emmanuel

Moe, Vidar a écrit :
> Hi!
>  
> We would like to have the settings.xml file in a custom location to
> easily being able to have it under source control. We can control the
> placement of the settings.xml file by the 
>  
> -Dorg.apache.maven.user-settings
>  
> but it is cumersome for developers to add this param for every mvn
> command they are going to run. - Can this parameter be applied globally
> somehow, so that the developers do not have to add it everytime?
>  
> Thanks in advance,
>  
> Regards,
> Vidar Moe
> 
> 
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
> 


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


Re: Settings.xml under source control?

Posted by Max Bowsher <ma...@ukf.net>.
Moe, Vidar wrote:
> Hi!
>  
> We would like to have the settings.xml file in a custom location to
> easily being able to have it under source control. We can control the
> placement of the settings.xml file by the 
>  
> -Dorg.apache.maven.user-settings
>  
> but it is cumersome for developers to add this param for every mvn
> command they are going to run. - Can this parameter be applied globally
> somehow, so that the developers do not have to add it everytime?

Look at the source of the 'mvn' script and see that it sources
/etc/mavenrc and ~/.mavenrc. Use one of these to adjust MAVEN_OPTS.

Max.