Execution default of goal org.springframe work.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage

Execution default of goal org.springframe
work.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage failed: Unable to find a single main class from the following candidates

在maven项目打包时,出现如下错误:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage (default) on project xxxx-common: Execution default of goal org.springframe
work.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage failed: Unable to find a single main class from the following candidates [com.xxxx.common.util.AESCiperUtil, com.xxxx.common.ut
il.AESUtil, com.xxxx.common.util.AWSUploadFileUtil, com.xxxx.common.util.DateUtil, com.xxxx.common.util.GoldUtils, com.xxxx.common.util.IdCardNoUtil, com.xxxx.common.util.RSACipherUtil,
com.xxxx.common.util.RSAKeyUtil, com.xxxx.common.util.RSAUtil, com.xxxx.common.util.SignUtil, com.xxxx.common.util.UuidUtils] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :xxxx-xxxx-common

桌面:23图

 
解决办法
 
在pom文件里面添加如下插件,解决问题,



org.apache.maven.plugins
maven-release-plugin

-Dmaven.javadoc.skip=true -Dmaven.test.skip=true



发布了458 篇原创文章 · 获赞 15 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_32370913/article/details/105552545