- 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:
- Update project manually_ Solution of too large jar package in springboot
- Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0:repackage failed
- Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build Exception caught: basedir src/mai
- Unable to access javax.servlet.servletexception [How to Solve]
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project Hello
- Maven skip unit test- maven.test.skip And skipstests
- Idea Maven project uses package to package and report error (package does not exist)
- Maven skip unit test
- Error parsing lifecycle processing instructions
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test)
- Error resolving version for plugin ‘org.apache.maven.plugins:maven-compiler-plugin’ from the repo…
- Process exited with an error: 1 (Exit value: 1)
- MVN error: @ param not found
- Maven compilation error: package does not exist jar package does not exist
- Maven invalid source release 11
- [Solved] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zyh.springboot.
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- How to Solve Error: Failed to execute goal org.codehaus.mojo:……..
- About jmh running error: transport error 202: Connect failed: connection reused error solution
- About JMH running ERROR: transport error 202: connect failed: Connection refused ERROR