i follow this Reading my own Jar's Manifest guidelines to get manifest entries programmatically.
I am building jar file with maven-assembly-plugin. Manifest file is located in META-INF/MANIFEST.MF
inside jar file.
Problem is that i am getting empty entry in any case. I tried to load using JarFile, Using ClassLoaderResources not effect.
But if add extra entries into pom file, using then i can read this entries if they are in separate section (separated with extra newline).
If i add entries to main attributes section with then they are invisible.
Is it possible that for some security reason reading programmatically manifest.mf file is disabled?