You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pe...@ubs.com on 2006/11/30 12:24:35 UTC

MAVEN_INSTALL_DIR/conf/settings.xml

Hi All

Is there a property to define the location of the Maven local
repository?

Reading the notes from the installation configuration ``settings.xml''
in the 
``<MAVEN_INSTALL_DIR>/conf''. There are two system properties

 |  1. User Level. This settings.xml file provides configuration for a
single user, 
 |                 and is normally provided in $HOME/.m2/settings.xml.
 |
 |                 NOTE: This location can be overridden with the system
property:
 |
 |
-Dorg.apache.maven.user-settings=/path/to/user/settings.xml
 |
 |  2. Global Level. This settings.xml file provides configuration for
all maven
 |                 users on a machine (assuming they're all using the
same maven
 |                 installation). It's normally provided in 
 |                 ${maven.home}/conf/settings.xml.
 |
 |                 NOTE: This location can be overridden with the system
property:
 |
 |
-Dorg.apache.maven.global-settings=/path/to/global/settings.xml


Is there an equivalent system property to set the location of the 
local repository?

If it exists I would like to specify it on the command line in order to
generate
a build on a severly isolated machine.

Alternatively can Maven settings.xml substitute system properties?

<settings>
  <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
  -->

 
<localRepository>${user.home}/non-sharable/maven-repository</localReposi
tory>
  ...
</settings>


TIA

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


RE: MAVEN_INSTALL_DIR/conf/settings.xml

Posted by Pe...@ubs.com.
> -----Original Message-----
> From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com] 
> Sent: 30 November 2006 13:24
> To: Maven Users List
> Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml
> 
> I just tried this on my machine, and it did work.
> 
> C:\>mvn clean -Dmaven.repo.local=x:\ -X
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> .....
> [DEBUG] Exception
> org.apache.maven.wagon.TransferFailedException: Specified 
> destination directory cannot be created:
> x:\org\apache\maven\plugins\maven-clean-plugin

It works for me too. 
Ah! The Tilde (~) symbol and the BASH command line

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::> > 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


Re: MAVEN_INSTALL_DIR/conf/settings.xml

Posted by Tom Huybrechts <to...@gmail.com>.
I just tried this on my machine, and it did work.

C:\>mvn clean -Dmaven.repo.local=x:\ -X
+ Error stacktraces are turned on.
Maven version: 2.0.4
.....
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Specified destination
directory cannot be created:
x:\org\apache\maven\plugins\maven-clean-plugin



On 11/30/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
>
> > -----Original Message-----
> > From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com]
> ==////==
> >
> > -Dmaven.repo.local=...
> >
> > On 11/30/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
>
>
> Unfortunately, in Maven 2.0.4 this system property does not work to
> override
> the default local repository location. e.g.
>
> % mvn -Dorg.apache.maven.user-setting=~/ptsp/m2/settings.xml
> -Dmaven.repo.local=~/ptsp/m2/repository -X compile
>
>
> > > Hi All
> > >
> > > Is there a property to define the location of the Maven local
> > > repository?
> > >
> > > Reading the notes from the installation configuration
> > ``settings.xml''
> > > in the
> > > ``<MAVEN_INSTALL_DIR>/conf''. There are two system properties
> > >
> > >  |  1. User Level. This settings.xml file provides
> > configuration for a
> > > single user,
> > >  |                 and is normally provided in
> > $HOME/.m2/settings.xml.
> > >  |
> > >  |                 NOTE: This location can be overridden
> > with the system
> > > property:
> > >  |
> > >  |
> > > -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
> > >  |
> > >  |  2. Global Level. This settings.xml file provides
> > configuration for
> > > all maven
> > >  |                 users on a machine (assuming they're all
> > using the
> > > same maven
> > >  |                 installation). It's normally provided in
> > >  |                 ${maven.home}/conf/settings.xml.
> > >  |
> > >  |                 NOTE: This location can be overridden
> > with the system
> > > property:
> > >  |
> > >  |
> > > -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
> > >
> > >
> > > Is there an equivalent system property to set the location of the
> > > local repository?
> > >
> > > If it exists I would like to specify it on the command line
> > in order
> > > to generate a build on a severly isolated machine.
> > >
> > > Alternatively can Maven settings.xml substitute system properties?
>
> ==////==
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> +44 (0) 20 75 75692
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: MAVEN_INSTALL_DIR/conf/settings.xml

Posted by Pe...@ubs.com.
> -----Original Message-----
> From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com] 
==////==
> 
> -Dmaven.repo.local=...
> 
> On 11/30/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:


Unfortunately, in Maven 2.0.4 this system property does not work to
override
the default local repository location. e.g.

% mvn -Dorg.apache.maven.user-setting=~/ptsp/m2/settings.xml
-Dmaven.repo.local=~/ptsp/m2/repository -X compile


> > Hi All
> >
> > Is there a property to define the location of the Maven local 
> > repository?
> >
> > Reading the notes from the installation configuration 
> ``settings.xml''
> > in the
> > ``<MAVEN_INSTALL_DIR>/conf''. There are two system properties
> >
> >  |  1. User Level. This settings.xml file provides 
> configuration for a 
> > single user,
> >  |                 and is normally provided in 
> $HOME/.m2/settings.xml.
> >  |
> >  |                 NOTE: This location can be overridden 
> with the system
> > property:
> >  |
> >  |
> > -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
> >  |
> >  |  2. Global Level. This settings.xml file provides 
> configuration for 
> > all maven
> >  |                 users on a machine (assuming they're all 
> using the
> > same maven
> >  |                 installation). It's normally provided in
> >  |                 ${maven.home}/conf/settings.xml.
> >  |
> >  |                 NOTE: This location can be overridden 
> with the system
> > property:
> >  |
> >  |
> > -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
> >
> >
> > Is there an equivalent system property to set the location of the 
> > local repository?
> >
> > If it exists I would like to specify it on the command line 
> in order 
> > to generate a build on a severly isolated machine.
> >
> > Alternatively can Maven settings.xml substitute system properties?

==////==

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


Re: MAVEN_INSTALL_DIR/conf/settings.xml

Posted by Tom Huybrechts <to...@gmail.com>.
-Dmaven.repo.local=...

On 11/30/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
> Hi All
>
> Is there a property to define the location of the Maven local
> repository?
>
> Reading the notes from the installation configuration ``settings.xml''
> in the
> ``<MAVEN_INSTALL_DIR>/conf''. There are two system properties
>
>  |  1. User Level. This settings.xml file provides configuration for a
> single user,
>  |                 and is normally provided in $HOME/.m2/settings.xml.
>  |
>  |                 NOTE: This location can be overridden with the system
> property:
>  |
>  |
> -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
>  |
>  |  2. Global Level. This settings.xml file provides configuration for
> all maven
>  |                 users on a machine (assuming they're all using the
> same maven
>  |                 installation). It's normally provided in
>  |                 ${maven.home}/conf/settings.xml.
>  |
>  |                 NOTE: This location can be overridden with the system
> property:
>  |
>  |
> -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
>
>
> Is there an equivalent system property to set the location of the
> local repository?
>
> If it exists I would like to specify it on the command line in order to
> generate
> a build on a severly isolated machine.
>
> Alternatively can Maven settings.xml substitute system properties?
>
> <settings>
>   <!-- localRepository
>    | The path to the local repository maven will use to store artifacts.
>    |
>    | Default: ~/.m2/repository
>   -->
>
>
> <localRepository>${user.home}/non-sharable/maven-repository</localReposi
> tory>
>   ...
> </settings>
>
>
> TIA
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> +44 (0) 20 75 75692
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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