maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: use properties within settings.xml
Date Tue, 26 Feb 2013 12:38:28 GMT
Please read my answer to a similar question on Stack Overflow:
http://stackoverflow.com/questions/14725197/reading-properties-file-from-pom-file-in-maven/14727072#14727072


On 26 February 2013 08:50, Gunnar <Gunnar.Bostrom@tieto.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message