I have to fetch implementation version of web application from manifest.mf
file. I have made the changes in pom.xml
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
I'm fetching implementation version by code
String number = VersionInfo.class.getPackage().getImplementationVersion();
But the code returns value null. Problem is I don't want to fetch this value by reading manifest.mf
from META-INF
folder using Stream.
Is there any way to find this value from Application context?