maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Heit" <thorsten.h...@vkb.de>
Subject Re: use properties within settings.xml
Date Tue, 26 Feb 2013 12:22:41 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?

As far as I know you can only use these properties in your pom.xml, but 
not in the settings.xml file itself.


Thorsten
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message