Or you can have a look at http://maven.apache.org/shared/maven-runtime/ .
The method [1] will help you . The returned bean MavenProjectProperties has a method called getVersion() . -- Olivier [1] http://maven.apache.org/shared/maven-runtime/apidocs/org/apache/maven/shared/runtime/MavenRuntime.html#getProjectProperties(java.lang.Class) . [2] http://maven.apache.org/shared/maven-runtime/apidocs/org/apache/maven/shared/runtime/MavenProjectProperties.html 2008/7/3 Stephen Connolly <[EMAIL PROTECTED]>: > Don't filter the sources... have a resource file and just get the > source code to read from the resource file. > > On Wed, Jul 2, 2008 at 3:58 PM, Henri Gomez <[EMAIL PROTECTED]> wrote: >> Hi to all, >> >> I'm trying to filter some of my java source file before compile phase. >> >> public interface DefaultProps { >> >> public static final String NAME = >> "${pom.artifactId}"; >> public static final String VERSION = >> "${pom.version}"; >> } >> >> >> maven-resources-plugin is only for resource (non code). >> >> How could we do this ? >> >> Regards >> >> --------------------------------------------------------------------- >> 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
