You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roland Asmann <Ro...@cfc.at> on 2009/10/15 20:12:34 UTC

Property resolution

Hi all,

I am playing around with some properties in my surefire-plugin... I need the 
${settings.localRepository} in my tests, but it seems this is not being 
resolved. Any other properties I try to pass, seem to work...

Is this a known bug or am I doing something wrong here?

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: Roland.Asmann@cfc.at
Web: www.cfc.at

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


RE: Property resolution

Posted by Roland Asmann <Ro...@cfc.at>.
Yes, I am. But reading that again and checking with a MOJO I wrote, I
guess I don't see it because the variable points to a java.io.File and not
a String...

However, I've found that I can get the local repository in Surefire as it
is in the system-properties as 'localRepository'.

Roland


> Are you passing these to surefire as system properties?
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html
>
> If not, how are you passing them?
>
> -----Original Message-----
> From: Roland Asmann [mailto:Roland.Asmann@cfc.at]
> Sent: Thursday, October 15, 2009 2:13 PM
> To: Maven List
> Subject: Property resolution
>
> Hi all,
>
> I am playing around with some properties in my surefire-plugin... I need
> the ${settings.localRepository} in my tests, but it seems this is not
> being resolved. Any other properties I try to pass, seem to work...
>
> Is this a known bug or am I doing something wrong here?
>
> --
> Roland Asmann
>
> CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7
> A-1010 Wien FN 266155f, Handelsgericht Wien
>
> Tel.: +43/1/513 88 77 - 27
> Fax.: +43/1/513 88 62
> Email: Roland.Asmann@cfc.at
> Web: www.cfc.at
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> -------------------------------------------------------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain
> confidential and proprietary information of Alcatel-Lucent and/or its
> affiliated entities. Access by the intended recipient only is authorized.
> Any liability arising from any party acting, or refraining from acting, on
> any information contained in this e-mail is hereby excluded. If you are
> not the intended recipient, please notify the sender immediately, destroy
> the original transmission and its attachments and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Copyright in this e-mail and any attachments
> belongs to Alcatel-Lucent and/or its affiliated entities.
>
>
> ---------------------------------------------------------------------
> 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: Property resolution

Posted by Jamie Whitehouse <Ja...@genesyslab.com>.
Are you passing these to surefire as system properties? http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html

If not, how are you passing them? 

-----Original Message-----
From: Roland Asmann [mailto:Roland.Asmann@cfc.at] 
Sent: Thursday, October 15, 2009 2:13 PM
To: Maven List
Subject: Property resolution

Hi all,

I am playing around with some properties in my surefire-plugin... I need the ${settings.localRepository} in my tests, but it seems this is not being resolved. Any other properties I try to pass, seem to work...

Is this a known bug or am I doing something wrong here?

--
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: Roland.Asmann@cfc.at
Web: www.cfc.at

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


					
-------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or its affiliated entities.
					

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