Hi
I have the same identical problem...
Have you resolved in the meanwhile?
Any other hints?
Thanks regards.
Raffaele
Jan Delannoy wrote:
>
> Hi all,
>
> I'm having some problems using properties in the settings.xml. I'm
> trying to use properties in the username and password elements of a
> server declaration, and then getting the values for these properties
> from a profile in my local settings.xml. So this would be (part of)
> my Maven settings.xml:
>
> <server>
> <id>someserver</id>
> <username>${someserver.username}</username>
> <password>${someserver.password}</password>
> </server>
> ...
> <activeProfiles>
> <activeProfile>property-overrides</activeProfile>
> </activeProfiles>
>
> and in my local settings.xml I have:
>
> <settings>
> <profiles>
> <profile>
> <id>property-overrides</id>
> <properties>
> <someserver.username>myuser</someserver.username>
> <someserver.password>mypassword</someserver.password>
> </properties>
> </profile>
> </profiles>
> </settings>
>
> But when I run mvn help:effective-settings I get:
>
> <settings>
> <localRepository>C:\Documents and
> Settings\jan\.m2\repository</localRepository>
> <servers>
> <server>
> <username>${someserver.username}</username>
> <password>${someserver.password}</password>
> <id>someserver</id>
> </server>
> </servers>
> <profiles>
> <profile>
> <properties>
> <someserver.username>myuser</someserver.username>
> <someserver.password>mypassword</someserver.password>
> </properties>
> <id>property-overrides</id>
> </profile>
> </profiles>
> <activeProfiles>
> <activeProfile>property-overrides</activeProfile>
> </activeProfiles>
> </settings>
>
> Why is Maven not picking up my local settings? By the way, I took
> this kind of setup from Mergere's 'Better Builds with Maven' book...
>
> Any help would be greatly appreciated!
>
> Many thanks,
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/using-properties-in-settings.xml-tf3517023s177.html#a12938280
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]