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:

kiaragen_manifest_2

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

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -