在自己的maven仓库中按路径org/springframework/boot/spring-boot-maven-plugin找到它的版本号,在依赖下添加即可
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) on project webapps-api-bid: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage failed: Unable to find a single main class from the...
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) on project webapps-api-bid: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage failed: Unable to find a single main class from the...
针对你遇到的问题“could not find artifact org.springframework.boot”,可以按照以下步骤进行排查和解决: 确认pom.xml文件中是否已正确添加spring-boot-maven-plugin依赖: 在Spring Boot项目中,spring-boot-maven-plugin通常被配置在pom.xml文件的<build><plugins>部分,而不是作为普通的依赖项添加在...
import javax.persistence.EntityNotFoundException; import java.util.List; @RestController @RequestMapping("/items") public class ItemController { @Autowired private ItemRepository repo; @RequestMapping(method = RequestMethod.GET) public List<Item> findItems() { ...
m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.ja [ERROR] urls[17] = file:/home/omega/.m2/repository/org/springframework/boot/spring-boot-loader-tools/3.0.0-M1/spring-boot-loader-tools-3.0.0-M1.ja [ERROR] urls[18] = file:/home/omega/.m2/repository/org/apache/...
java.lang.TypeNotPresentException: Type org.springframework.boot.maven.RepackageMojo not present at org.eclipse.sisu.space.URLClassSpace.loadClass (URLClassSpace.java:147) at org.eclipse.sisu.space.NamedClass.load (NamedClass.java:46) at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDe...
if (duration > FIND_WARNING_TIMEOUT) { getLog().warn("Searching for the main-class is taking some time, " + "consider using the mainClass configuration " + "parameter"); } } } }; //如果插件中指定了mainClass就直接使用 repackager.setMainClass(this.mainClass); ...
Once I find out more, I'll update you. spring-projects-issues added status: feedback-provided and removed status: waiting-for-feedback labels Aug 16, 2023 Member snicoll commented Aug 16, 2023 I don't see how the shade plugin from Maven can be related to our plugin. They really ...
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) on project webapps-api-bid: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.3.RELEASE:repackage failed: Unable to find a single main class from the...