Wrong Manifest.mf in IntelliJ IDEA created .jar

前端 未结 7 1971
-上瘾入骨i
-上瘾入骨i 2020-11-28 02:08

I\'m trying to package a project using OptaPlanner 6.0.1 libraries into a .jar through IntelliJ IDEA\'s jar artifact but instead of my manifest.mf containing the standard

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 02:09

    If you want to specify Main Class, you have to add this plugin to pom.xml:

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

提交回复
热议问题