美文网首页
spring-boot项目打包运行jar包报没有主清单属性

spring-boot项目打包运行jar包报没有主清单属性

作者: iOS_Ken | 来源:发表于2021-08-07 15:51 被阅读0次

    打包成功,但是报jar中没有主菜单属性的错误

    image.png

    但是报jar中没有主菜单属性的错误

    image.png

    添加以下插件就可以打包成功,并确保是否生成original文件


    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
    

    image.png

    相关文章

      网友评论

          本文标题:spring-boot项目打包运行jar包报没有主清单属性

          本文链接:https://www.haomeiwen.com/subject/ivqgvltx.html