Thanks for that but I have already looked at the appropriate
documentation. I have tried setting the system property in all of those
locations and for some reason none of the settings are passed through. I
did find a JIRA bug opened against this problem somewhere, and thus am
guessing this functionality isn't yet available.

-----Original Message-----
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: 15 January 2008 09:53
To: Maven Users List
Cc: Matthew Tordoff
Subject: RE: Setting Java System property

http://maven.apache.org/ref/current/maven-model/maven.html

Search for "properties".

---- Matthew Tordoff <[EMAIL PROTECTED]> schrieb:
> I still haven't moved forwards with this. Does any one have any ideas?

> 
> -----Original Message-----
> From: Matthew Tordoff [mailto:[EMAIL PROTECTED]
> Sent: 14 January 2008 17:56
> To: Maven Users List
> Subject: Setting Java System property
> 
> Hi all,
>  
> I am having problems setting a Java System Property as part of my
build.
> I have tried setting it in all kinds of places and the only one that I

> have found to work is setting it as part of the maven command line as
> follows:
>  
> mvn compile -Dsystemprop=blah
>  
> Setting in the above way is the only way in which I appear to be able 
> to access the file at a later stage from one of my MOJOs via
> System.getProperty("systemprop") .
>  
> I don't want to have to set this at the command line because I want to

> minimise what is typed each time mvn is run.
>  
> The other approaches I have tried are...
>  
> Within pom.xml
> - <configuration>
>     <systemprop>blah</systemprop>
>   </configuration>
>  
> also...
>  
> <configuration>
>   <properties>
>     <systemprop>blah</systemprop>
>   <properties>
> </configuration>
>  
> within settings.xml...
>  
>   <properties>
>     <systemprop>blah</systemprop>
>   <properties>
>  
> Any help would be greatly appreciated.
>  
> Regards,
>  
> Matt
> 
> 
> 
> The content of this e-mail is confidential and may be privileged. It 
> may be read, copied and used only by the intended recipient and may 
> not be disclosed, copied or distributed. If you received this email in

> error, please contact the sender immediately by return e-mail or by 
> telephoning
> +44 20 7260 2000, delete it and do not disclose its contents to any
> person. You should take full responsibility for checking this email 
> for viruses. Markit reserves the right to monitor all e-mail 
> communications through its network.
> Markit and its affiliated companies make no warranty as to the 
> accuracy or completeness of any information contained in this message 
> and hereby exclude any liability of any kind for the information
contained herein.
> Any opinions expressed in this message are those of the author and do 
> not necessarily reflect the opinions of Markit.
> For full details about Markit, its offerings and legal terms and 
> conditions, please see Markit's website at http://www.markit.com 
> <http://www.markit.com/> .
> 
> 
> 
> The content of this e-mail is confidential and may be privileged. It
may be read, copied and used only by the intended recipient and may not
be disclosed, copied or distributed. If you received this email in
error, please contact the sender immediately by return e-mail or by
telephoning +44 20 7260 2000, delete it and do not disclose its contents
to any person. You should take full responsibility for checking this
email for viruses. Markit reserves the right to monitor all e-mail
communications through its network.
> Markit and its affiliated companies make no warranty as to the
accuracy or completeness of any information contained in this message
and hereby exclude any liability of any kind for the information
contained herein. Any opinions expressed in this message are those of
the author and do not necessarily reflect the opinions of Markit.
> For full details about Markit, its offerings and legal terms and
conditions, please see Markit's website at http://www.markit.com
<http://www.markit.com/> .
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




The content of this e-mail is confidential and may be privileged. It may be 
read, copied and used only by the intended recipient and may not be disclosed, 
copied or distributed. If you received this email in error, please contact the 
sender immediately by return e-mail or by telephoning +44 20 7260 2000, delete 
it and do not disclose its contents to any person. You should take full 
responsibility for checking this email for viruses. Markit reserves the right 
to monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the accuracy or 
completeness of any information contained in this message and hereby exclude 
any liability of any kind for the information contained herein. Any opinions 
expressed in this message are those of the author and do not necessarily 
reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and conditions, 
please see Markit's website at http://www.markit.com <http://www.markit.com/> .

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

Reply via email to