Hiding manifest entries with maven

前端 未结 3 2283
执念已碎
执念已碎 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:42

    Add

    false
    

    to configration section of maven-jar-plugin in your pom.xml to completely remove default properties:

    
        org.apache.maven.plugins
        maven-jar-plugin
        
          
            
              false
            
          
        
      
    

    to customize it (remove just username):

        
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                        
                            
                        
                    
                
            
    

提交回复
热议问题