maven - Java manifest file altered after exporting project -
this question follow of this , this question. i've placed meta-inf/manifest.mf file suggested /src/main/resources , exported project using following manifest.mf file:
manifest-version: 1.0 main-class: org.fiware.kiara.generator.kiaragen
there new line after main-class entry before end of file. artifact configuration bellow:
the manifest.mf file in .jar file different 1 specified in resources directory:
$ cat meta-inf/manifest.mf manifest-version: 1.0 created-by: 1.5.0_13 (apple inc.)
why main-class entry removed?
simple - done due build cycle.
first sorces gets compiled along manifest resources, second maven writes new manifest, , gets overriden. if want pust custom stuff manifest, , use maven, should rather modify pom
file create proper manifest insteed of putting 1 in resources.
check following https://maven.apache.org/shared/maven-archiver/examples/manifestfile.html custom manifest includement.
Comments
Post a Comment