How to set build properties from a file in Maven POM?
问题 I need to read and filter a properties file from a location outside my project, say ${user.home}/my.properties. This properties file looks like this: res.dir=/my/stuff/here resource.dir=C:/${res.dir} bin.dir=${resource.dir}/bin cfg.dir=${resource.dir}/config I have to do this in both my build and in my application when it runs. This is easy to do in Ant, using the PROPERTY tag. However, there doesn't seem to be a good way to do it in Maven. So far I have tried the Maven <property> tag, the