Thanks Kalle! My project is a multi-module project which contains an ear module and a war module. I need to access the property of the ear module (for the ear name and version) from the war module or from the project root pom.
Is that possible to access properties of a module from another module or from the project root pom in maven? Best Regards Fred Zhang -----Original message----------- From: Kalle Korhonen [mailto:[EMAIL PROTECTED] Sent: Jan.04.2008 16:31 To: Maven Users List Subject: Re: how to use maven project properties in other configuration files? Make your configuration file a filtered resource: http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Kalle On 1/3/08, Fred Zhang <[EMAIL PROTECTED]> wrote: > > Hi there, > Sometimes I need to use maven project properties, e.g. ${project.version} > etc in some configuration files (not pom.xml or settings.xml). For > example, when I build an ear file with the name "EAR-${project.version}.ear", > I need to use this ear name in some configuration file for JNDI-lookup. > > But how can I use the maven property ${project.version} in configuration > files? Is there any plug-in that can make the job done? > > Thanks in advance! > > Fred Zhang > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]