运行Spring Cloud技术栈中Springboot的jar包时报错:没有主清单属性

本文处理方案来自于:运行Spring Cloud中Springboot的jar包时报错:没有主清单属性

pom依赖

在这里插入图片描述

代码

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
发布了23 篇原创文章 · 获赞 3 · 访问量 1233

猜你喜欢

转载自blog.csdn.net/Joe14103/article/details/103054588