maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar <Gunnar.Bost...@tieto.com>
Subject use properties within settings.xml
Date Tue, 26 Feb 2013 08:50:08 GMT
Hi,
I would like to setup profiles with username and password as properties.
Then I would like to use the properties in the servers/server tags in the
same file.
Something like the following:
profile>
			<id>old-nexus</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<nexus.username>me</nexus.username>
			</properties>
		</profile>

<servers>
		<server>
			<id>releases</id>
			<username>${nexus.username}</username>

When I do this ${nexus.username} is not replaced with me.

Am I doing anything wrong or is it not possible?
/Gunnar



--
View this message in context: http://maven.40175.n5.nabble.com/use-properties-within-settings-xml-tp5748461.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Mime
View raw message