- common modules
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.8.RELEASE:repackage (repackage) on project online-common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.8.RELEASE:repackage failed: Unable to find a single main class from the following candidates [com.example.onlinecommon.valatiledemo.Main, com.example.onlinecommon.valatiledemo.MainDemo, com.example.onlinecommon.valatiledemo.MyRunnable]
According to the above tips, I deleted the main method in classes main, maindemo and myrunnable
2. Continue packing
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.8.RELEASE:repackage (repackage) on project online-common: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.8.RELEASE:repackage failed: Unable to find main class
The above tip: my common module lacks the main class, because this is my tool module, so there is no need to start the class. I changed the package file to
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
Skip the packaging of this module
Read More:
- There is an error when idea creates a child item parent tag
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- Idea Maven project uses package to package and report error (package does not exist)
- 3. Idea creates a springboot project, and spring initializer reports an error Error:connect timed out
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- NPM installs dependent packages and reports an error node gyp rebuild… Solution
- The Vue parent component uses ref to call the sub component method and reports an error
- Error in pom.xml file of sub module of Maven aggregation project
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
- Error in value transmission of react parent-child component
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project Hello
- How to solve the problem that the project module turns grey in Maven
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default) on project
- JDK upgrade 17 project reports an error java.lang.reflect.inaccessibleobjectexception
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- Let reports an error in idea
- Error in publishing project with Maven in idea. Git directory is not found! Please specify a valid
- When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expected
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project