打包spring boot项目 通过cmd命令运行jar包报错:eureka-service.jar中没有主清单属性
在有spring boot启动类的模块中添加
<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>