I know I can retrieve some settings.xml parameters using properties, like, for example ${settings.localRepository}
to get the location of the local repository.
Now imagine my settings.xml contains the following servers definition:
<servers>
<server>
<id>server-dev</id>
<username>devuser</username>
<password>devpass</password>
</server>
<server>
<id>server-hom</id>
<username>homuser</username>
<password>hompass</password>
</server>
</servers>
Is there a way, given an id
of a server to get the value of any parameter? For example, something like ${settings.servers.server.server-dev.username}
would return devuser
.
I've already tried the following:
${settings.servers.server.server-dev.username}
${settings.servers.server-dev.username}
${settings.servers.server[server-dev].username}
${settings.servers[server-dev].username}
but none of them worked...
Regarding this page, this is not possible. However, as it is a feature not correctly documented, I still have some hope to do that in this way...