I have a WAR file, and inside a /META-INF/MANIFEST.MF containing my product version info:
Implementation-Version: 1.0.0.0
At my index.jsp I have this code to print the version:
<%
String version = com.my.Utils.class.getPackage().getImplementationVersion();
out.print("Version: " + version);
%>
This code always return:
Version:
This solution is based on this article.
What I need to do read my version information from war manifest file?