${project.version} is the way to go. ${pom.version} is deprecated.
/Anders
On Tue, Feb 1, 2011 at 22:34, Gunnar Eketrapp <[email protected]>wrote:
> A java project from within I wanted to access the pom.xml <version> tag.
>
> I found out that I could do this with by filtering my resources and using
> ${pom.version} in my app.properties ...
>
>
> 2011/2/1 Wayne Fay <[email protected]>
>
> > > How do I access the maven version from my java code.
> >
> > For what purpose, exactly? Are you building a Maven plugin, or simply
> > building some Java project with Maven?
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> [Hem: 08-715 59 57, Mobil: 0708-52 62 90]
> Allévägen 2A, 132 42 Saltsjö-Boo
>