Bootstrap

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.jar

  • 错误描述:
    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>

转载于:https://www.cnblogs.com/mmzs/p/11039861.html

;