Suppose I get a properties file from somewhere that defines this:
dog=POODLE
And when starting maven, I pass a parameter with the name of the property to search for:
mvn clean install -animal=dog
I need to get the "POODLE" value in pom.xml without knowing which property to look for (I don't know yet that I'm looking for a "dog", but just now I'm looking for an "animal").
Can this be done?
I can reference in pom ${animal} , which will be replaced by dog , but then I need to see this.
I was innocent enough to try the following, but this will not work:
${${animal}}
Thanks!
source share