Skip to content
Advertisement

How to read an external properties file in Maven

Does anyone know how to read a x.properties file in Maven. I know there are ways to use resource filtering to read a properties file and set values from that, but I want a way in my pom.xml like:

<properties file="x.properties"> 

</properties>

There was some discussion about this: Maven External Properties

Advertisement

Answer

Try the Properties Maven Plugin

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement