no main manifest attribute, in XXX1.0.0-SNAPSHOT.jar

Question: springboot jar package, execute java -jar prompted no main manifest attribute

The reason: pom.xml not introduce the following configuration

< Build> 
< plugins>
< plugin>
< the groupId> org.springframework.boot </ the groupId>
< the artifactId> Boot-Spring-Maven-plugin </ the artifactId>
</ plugin>
</ plugins>
</ Build>

Solution: Check are there more inside the jar package pom.xml configuration, re-packing jar package after adding in the words of no source project.

Guess you like

Origin www.cnblogs.com/jybky/p/12092050.html