Netbeans Maven Project Not adding Main Class to Manifest

后端 未结 2 1645
深忆病人
深忆病人 2020-12-13 07:10

I am having a similar problem to this question. I have tried all the suggestions listed and am still at a loss. My issue is that I am trying to build a maven project and dis

2条回答
  •  旧时难觅i
    2020-12-13 07:53

    Another option is to use the maven shade plugin. Unlike the maven jar plugin showed by tigran, the maven shade plugin includes your dependencies in the generated jar. A sample usage of the plugin is :

      
        
          
            org.apache.maven.plugins
            maven-shade-plugin
            2.0
            
              
                package
                
                  shade
                
                
                  
                    
                      your.main.Class
                    
                  
                
              
            
          
        
      
    

提交回复
热议问题