How to read an external properties file in Maven

Dougnukem picture Dougnukem · May 11, 2009 · Viewed 184.8k times · Source

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

Answer

Mike Pone picture Mike Pone · May 11, 2009