Oops... This is what wicket does

public String getVersion()
{
String implVersion = null;
Package pkg = getClass().getPackage();
if (pkg != null)
{
implVersion = pkg.getImplementationVersion();
}
return Strings.isEmpty(implVersion) ? "n/a" : implVersion;
}

Maybe you can do the same for one of your classes

met vriendelijke groeten

Ernesto



On Wed, Dec 14, 2011 at 11:45 AM, Sjoerd Schunselaar <
[email protected]> wrote:

> That is the Wicket version, I mean the version of my project which can be
> set in the pom file.
>
>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>nl.sjoerd.test</groupId>
>    <artifactId>projectx</artifactId>
>    <version>0.0.6</version>
>    <packaging>war</packaging>
>    <name>projectx</name>
>
> Kind regards,
>
> Sjoerd Schunselaar
>
>
> On Wed, Dec 14, 2011 at 11:37 AM, Ernesto Reinaldo Barreiro <
> [email protected]> wrote:
>
> > Application.getFrameworkSettings().getVersion()?
> >
> >
> > On Wed, Dec 14, 2011 at 11:33 AM, Sjoerd Schunselaar <
> > [email protected]> wrote:
> >
> > > Hi all,
> > >
> > > Is there a easy way to display the artifact version which can be set in
> > de
> > > maven pom.xml file?
> > > I would like to display that artifact version in the title bar.
> > >
> > >
> > > met vriendelijke groet,
> > >
> > > Sjoerd Schunselaar
> > >
> >
>

Reply via email to