Hiding manifest entries with maven

前端 未结 3 2284
执念已碎
执念已碎 2021-02-19 23:02

When building a jar file with maven, it will create a manifest file in META-INF/MANIFEST.MF. Its contents currently are:

Manifest-Version: 1.0                            


        
3条回答
  •  名媛妹妹
    2021-02-19 23:54

    Set user.name variable to empty string.

    mvn -Duser.name="" package

    Or if you are using Eclipse add -Duser.name="" to VM arguments of Maven run configuration (Run -> Run As -> Maven build... -> JRE tab -> enter -Duser.name="" in VM arguments field).

提交回复
热议问题