struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brown <>
Subject Re: Finding out version of Struts2 by introspecting the struts2-core jar
Date Wed, 14 Jul 2010 00:27:48 GMT
On Wed, Jul 14, 2010 at 8:08 AM, Rohan Ranade <> wrote:
> Hi all,
> I want to find out the version of Struts2 (2.0.x or 2.1.x) by introspecting
> the struts2 core jar file. Is there a class which can be introspected to
> find this out? (similar to
> Spring)? Having looked at the struts2 core jar, I see that
> <core-jar>/META-INF/maven/org.apache.struts/struts2-core/
> contains a version property. Is this a reliable way to check the version of
> Struts2?

Yes, this is reliable as long as Struts 2 is built with Maven 2, which
is highly likely to be the case for the foreseeable future.  Is there
a specific use case you have in mind in which you need to know the

> Can someone advise if there is a better way to do this?
> Thanks and Regards,
> Rohan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message