How to get or read the Env variable defined under 'systemPropertyVariables' tag in pom.xml? Have a look at the pom.xml snippet. I want to get the value of 'env' and use it in my code.
<systemPropertyVariables> <propertyName>${env}</propertyName> </systemPropertyVariables>
As mentioned in comment, you can get using
System.getProperty("propertyName")
Thank you
1.4m articles
1.4m replys
5 comments
57.0k users