install package error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:repackage (repackage) on project
install package error:
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:repackage (repackage) on project zbbzfw-common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.7.RELEASE:repackage failed: Unable to find main class
Solution:
Comment out the following codes in pom.xml file:
<!-- <build>--> <!-- <plugins>--> <!-- <plugin>--> <!-- <groupId>org.springframework.boot</groupId>--> <!-- <artifactId>spring-boot-maven-plugin</artifactId>--> <!-- </plugin>--> <!-- </plugins>--> <!-- </build>-->
Similar Posts:
- SpringBoot Project Package Error: [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin (Running Normally)
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- Unable to find a single main class from the following candidates [xxx,xxx]
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- How to Solve Error: spring-boot-maven-plugin not found
- Spring boot: run startup error [How to Solve]
- [Solved] Plugin ‘org.springframework.boot:spring-boot-maven-plugin:’not found
- [Solved] SpringBoot Project Package to jar Error: ClassNotFound…
- Spring cloud multi module packaging errors [How to Solve]
- [Solved] The updated version of springboot causes no main manifest attribute