Can't execute jar- file: “no main manifest attribute”

后端 未结 30 2488
不知归路
不知归路 2020-11-21 22:30

I have installed an application, when I try to run it (it\'s an executable jar) nothing happens. When I run it from the commandline with:

java -jar \

30条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-21 22:55

    I had the same issue. by adding following lines to pom file made it work. The plugin will make sure the build process of your application with all necessary steps.

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
    

提交回复
热议问题