[Solved] The updated version of springboot causes no main manifest attribute

Recently, the springboot version was upgraded to 2.1.6. Release , and the springcloud version was upgraded to Greenwich. Sr2 when pushing the remote image to Ranger, it has been unable to start. The log shows no main manifest attribute, in/APP. Jar

Packaging tools have not changed, no problem before, and then click the mouse packaging plug-in found no version number

  <plugin>
	  <groupId>org.springframework.boot</groupId>
	  <artifactId>spring-boot-maven-plugin</artifactId>
	  <!--Be sure to match the springboot version number, because the new version of springboot no longer sets the dependencies of this plugin-->
	  <version>${spring-boot.version}</version>
	  <executions>
		  <execution>
			  <goals>
			  	<goal>repackage</goal>
			  </goals>
		  </execution>
	  </executions>
  </plugin>

Add in the version number and it’s done

Similar Posts: