RE: Use System Properties in Settings.xml?

2006-08-29 Thread Peter . Pilgrim

*DONE*  http://jira.codehaus.org/browse/MNG-2532

 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED] 
====
 
 Hm. That is a pickle. Since settings.xml profiles override 
 pom and profiles.xml profiles, then if you make it active by 
 default it will always win. But you only want to set the 
 property iff it is not already set. I'd say file an issue 
 under the Profiles component.
 
 http://jira.codehaus.org/browse/MNG
 
 Eric
 
 
 On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
  I forgot to mentioned I tried this XML fragment
 
   profile
 iduser-install-root/id
 activation
   property
 name!user.install.root/name
   /property
 /activation
 properties
   user.install.rootC:\\Program 
  Files\\IBM\\WebSphere\\AppServer/user.install.root
 /properties
   /profile
 
  But it did not work for me at all!
 
 
   -Original Message-
   From: Eric Redmond [mailto:[EMAIL PROTECTED]
   Sent: 23 August 2006 13:38
   To: Maven Users List
   Subject: Re: Use System Properties in Settings.xml?
  
   You create at profile in settings.xml that is active by 
 default, and 
   contains a properties element with the property you wish 
 to active.
  
  
====

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Use System Properties in Settings.xml?

2006-08-24 Thread Peter . Pilgrim

I forgot to mentioned I tried this XML fragment

 profile
   iduser-install-root/id
   activation
 property
   name!user.install.root/name
 /property
   /activation
   properties
 user.install.rootC:\\Program
Files\\IBM\\WebSphere\\AppServer/user.install.root
   /properties
 /profile

But it did not work for me at all!


 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED] 
 Sent: 23 August 2006 13:38
 To: Maven Users List
 Subject: Re: Use System Properties in Settings.xml?
 
 You create at profile in settings.xml that is active by 
 default, and contains a properties element with the property 
 you wish to active.
 
 
 On 8/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
   -Original Message-
   From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED]
   Sent: 19 August 2006 08:51
   To: Maven Users List
   Subject: RE: Use System Properties in Settings.xml?
  
   As I had initially mentioned, this works for me, not sure about 
   adding ENV as a prefix to MAVEN_HOME.
  
  localRepository${MAVEN_HOME}/repository/localRepository
  
====

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use System Properties in Settings.xml?

2006-08-24 Thread Eric Redmond

Hm. That is a pickle. Since settings.xml profiles override pom and
profiles.xml profiles, then if you make it active by default it will always
win. But you only want to set the property iff it is not already set. I'd
say file an issue under the Profiles component.

http://jira.codehaus.org/browse/MNG

Eric


On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



I forgot to mentioned I tried this XML fragment

 profile
   iduser-install-root/id
   activation
 property
   name!user.install.root/name
 /property
   /activation
   properties
 user.install.rootC:\\Program
Files\\IBM\\WebSphere\\AppServer/user.install.root
   /properties
 /profile

But it did not work for me at all!


 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2006 13:38
 To: Maven Users List
 Subject: Re: Use System Properties in Settings.xml?

 You create at profile in settings.xml that is active by
 default, and contains a properties element with the property
 you wish to active.


 On 8/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
   -Original Message-
   From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED]
   Sent: 19 August 2006 08:51
   To: Maven Users List
   Subject: RE: Use System Properties in Settings.xml?
  
   As I had initially mentioned, this works for me, not sure about
   adding ENV as a prefix to MAVEN_HOME.
  
  localRepository${MAVEN_HOME}/repository/localRepository
  
====

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://codehaus.org/~eredmond


RE: Use System Properties in Settings.xml?

2006-08-23 Thread Peter . Pilgrim




 -Original Message-
 From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] 
 Sent: 19 August 2006 08:51
 To: Maven Users List
 Subject: RE: Use System Properties in Settings.xml?
 
 As I had initially mentioned, this works for me, not sure 
 about adding ENV as a prefix to MAVEN_HOME.
 
localRepository${MAVEN_HOME}/repository/localRepository
 
 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED]
====
 
 
 I believe you need to prefix environment variables with ENV, 
 so you may
 need ${ENV.MAVEN_HOME}.
 
 Eric

Hi

Instead of using a system property is there a way to 
define a system property by default in settings.xml ?


====

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use System Properties in Settings.xml?

2006-08-23 Thread Eric Redmond

You create at profile in settings.xml that is active by default, and
contains a properties element with the property you wish to active.


On 8/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 -Original Message-
 From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED]
 Sent: 19 August 2006 08:51
 To: Maven Users List
 Subject: RE: Use System Properties in Settings.xml?

 As I had initially mentioned, this works for me, not sure
 about adding ENV as a prefix to MAVEN_HOME.

localRepository${MAVEN_HOME}/repository/localRepository

 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED]
====


 I believe you need to prefix environment variables with ENV,
 so you may
 need ${ENV.MAVEN_HOME}.

 Eric

Hi

Instead of using a system property is there a way to
define a system property by default in settings.xml ?


====

--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://codehaus.org/~eredmond


RE: Use System Properties in Settings.xml?

2006-08-22 Thread Douglas Ferguson
Do variables defined in the pom work too? 

Which xml files can use variables like this? 

I remember trying a variable inside of a profile.xml and it didn't work. But
I think the varaiable was defined in the pom and not and environment
variable.

-Original Message-
From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 8:15 PM
To: 'Maven Users List'
Subject: RE: Use System Properties in Settings.xml?

Yes, this works like below, where MAVEN_HOME is a environment
variable :

localRepository${MAVEN_HOME}/repository/localRepository


-Original Message-
From: SingleShot [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 10:53 PM
To: users@maven.apache.org
Subject: Use System Properties in Settings.xml?


Is it possible to use system properties in the settings.xml? From playing
around it appears it is not possible, but I thought I would ask. I would
like to do something like this:

localRepository$MAVEN_HOME/../../repository/localRepository

Thanks,

Mike
-- 
View this message in context:
http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523.html#
a5874009
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use System Properties in Settings.xml?

2006-08-20 Thread Eric Redmond

Woops. I meant to write env.*, not ENV.*. Both are supported, from what
it seems. I can't imagine it remaining that way forever. It seems safest to
me going forward to use the env prefix.

Eric

On 8/19/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:


As I had initially mentioned, this works for me, not sure about adding
ENV as a prefix to MAVEN_HOME.

 localRepository${MAVEN_HOME}/repository/localRepository

-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 19, 2006 11:08 AM
To: Maven Users List
Subject: Re: Use System Properties in Settings.xml?


I believe you need to prefix environment variables with ENV, so you may
need ${ENV.MAVEN_HOME}.

Eric

On 8/18/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

 Yes, this works like below, where MAVEN_HOME is a environment
 variable :

 localRepository${MAVEN_HOME}/repository/localRepository


 -Original Message-
 From: SingleShot [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 10:53 PM
 To: users@maven.apache.org
 Subject: Use System Properties in Settings.xml?


 Is it possible to use system properties in the settings.xml? From
 playing around it appears it is not possible, but I thought I would
 ask. I would like to do something like this:

 localRepository$MAVEN_HOME/../../repository/localRepository

 Thanks,

 Mike
 --
 View this message in context:

 http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523
 .html#
 a5874009
 Sent from the Maven - Users forum at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Eric Redmond
http://codehaus.org/~eredmond





--
Eric Redmond
http://codehaus.org/~eredmond


RE: Use System Properties in Settings.xml?

2006-08-19 Thread Sharma, Jaikumar
As I had initially mentioned, this works for me, not sure about adding
ENV as a prefix to MAVEN_HOME.

 localRepository${MAVEN_HOME}/repository/localRepository

-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 19, 2006 11:08 AM
To: Maven Users List
Subject: Re: Use System Properties in Settings.xml?


I believe you need to prefix environment variables with ENV, so you may
need ${ENV.MAVEN_HOME}.

Eric

On 8/18/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:

 Yes, this works like below, where MAVEN_HOME is a environment 
 variable :

 localRepository${MAVEN_HOME}/repository/localRepository


 -Original Message-
 From: SingleShot [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 18, 2006 10:53 PM
 To: users@maven.apache.org
 Subject: Use System Properties in Settings.xml?


 Is it possible to use system properties in the settings.xml? From 
 playing around it appears it is not possible, but I thought I would 
 ask. I would like to do something like this:

 localRepository$MAVEN_HOME/../../repository/localRepository

 Thanks,

 Mike
 --
 View this message in context:

 http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523
 .html#
 a5874009
 Sent from the Maven - Users forum at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Eric Redmond
http://codehaus.org/~eredmond


Use System Properties in Settings.xml?

2006-08-18 Thread SingleShot

Is it possible to use system properties in the settings.xml? From playing
around it appears it is not possible, but I thought I would ask. I would
like to do something like this:

localRepository$MAVEN_HOME/../../repository/localRepository

Thanks,

Mike
-- 
View this message in context: 
http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523.html#a5874009
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Use System Properties in Settings.xml?

2006-08-18 Thread Sharma, Jaikumar
Yes, this works like below, where MAVEN_HOME is a environment
variable :

localRepository${MAVEN_HOME}/repository/localRepository


-Original Message-
From: SingleShot [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 10:53 PM
To: users@maven.apache.org
Subject: Use System Properties in Settings.xml?


Is it possible to use system properties in the settings.xml? From playing
around it appears it is not possible, but I thought I would ask. I would
like to do something like this:

localRepository$MAVEN_HOME/../../repository/localRepository

Thanks,

Mike
-- 
View this message in context:
http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523.html#
a5874009
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Use System Properties in Settings.xml?

2006-08-18 Thread Eric Redmond

I believe you need to prefix environment variables with ENV, so you may need
${ENV.MAVEN_HOME}.

Eric

On 8/18/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:


Yes, this works like below, where MAVEN_HOME is a environment
variable :

localRepository${MAVEN_HOME}/repository/localRepository


-Original Message-
From: SingleShot [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 10:53 PM
To: users@maven.apache.org
Subject: Use System Properties in Settings.xml?


Is it possible to use system properties in the settings.xml? From playing
around it appears it is not possible, but I thought I would ask. I would
like to do something like this:

localRepository$MAVEN_HOME/../../repository/localRepository

Thanks,

Mike
--
View this message in context:

http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523.html#
a5874009
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://codehaus.org/~eredmond