You use filtering to substitute property references in (resource) files during the build process. It's the maven resource plugin that support filtering to do that.
Regarding reading properties from a file, the exact same question was asked a week or two ago. If you search Nabble or similar you'll find a link to a maven plugin I found for that. /Anders On Fri, Oct 30, 2009 at 11:30, Mr Debasis <[email protected]> wrote: > > Hi All, > I want to read property file values in pom file.like what we can read in > ant.like below > <property file="application.properties"/> > <property name="app.name" value="${app.name}"/> > > I know this i can achieve by using maven-antrun plugin.its true.also i > tried > but that value should be available through out the pom file.i don't want to > use it only inside ant-run plugin section. > > also i found something known as maven filtering.but how to read the > property > value through maven filtering i didnot get in the documentation. > > Can anybody please help me in this context. > > Thanks, > Debasis > -- > View this message in context: > http://old.nabble.com/Reading-properties-file-in-pom-tp26127833p26127833.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
