no main manifest attribute, in testProject-1.0-SNAPSHOT.jar

no main manifest attribute, in testProject-1.0-SNAPSHOT.jar

  • 錯誤描述:
    no main manifest attribute, in testProject-1.0-SNAPSHOT.jarspring

  • 錯誤描述:
    maven工程打包的時候出了問題,致使打包運行有問題maven

  • 錯誤緣由:
    <parent> 標籤導入的包名有問題
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-parent</artifactId>
        <version>2.0.4.RELEASE</version>
    </parent>
  • 解決辦法:
    修改 <parent> 標籤導入的包名
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.4.RELEASE</version>
    </parent>
相關文章
相關標籤/搜索