|
结论:这个插件不支持JAVA8
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0:repackage (default) on project midas4j-security-application: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
上一次编译的是
--- spring-boot-maven-plugin:2.7.5:repackage (default)
原因:11.24 更新了3.0.0版本
Maven Repository: org.springframework.boot » spring-boot-maven-plugin (mvnrepository.com)

处理:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.7.RELEASE</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<mainClass>com.xxl.job.admin.XxlJobAdminApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build> |
|