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

Reply via email to