I have a web service running inside a Wildfly 8.1.0 server.
The web service's WAR file contains inside the MANIFEST.MF file this line:
Implementation-Version: 1.0.32
I want to read this from one of the API's endpoints. I tried several things found on the internet:
getClass().getPackage().getImplementationVersion()
Returns null. Also with jcabi manifests library:
Manifests.read("Implementation-Version");
Returns 8.1.0.Final. This makes me think it actually reads Wildfly's MANIFEST file.
How can I read what is inside my WAR's MANIFEST file?