2019独角兽企业重金招聘Python工程师标准>>>
电子商务平台源码请加企鹅求求:一零三八七七四六二六。用java实施的电子商务平台太少了,使用spring cloud技术构建的b2b2c电子商务平台更少,大型企业分布式互联网电子商务平台,java 推出PC+微信+APP+云服务的云商平台系统,其中包括B2B、B2C、C2C、O2O、新零售、直播电商等子平台。
一.错误信息
SpringBoot进行Maven install操作时报repackage failed: Unable to find main class -> [Help 1]的错误,信息如下
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default) on project qfxSpringbootReadPropertiesDemo: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage failed: Unable to find main class -> [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
二.错误原因
因为没有正式环境的入口类,项目结构如下:
repackage failed: Unable to find main class
pom.xml文件的
repackage failed: Unable to find main class
三.解决方案1
pom.xml文件的
如图
repackage failed: Unable to find main class
四.解决方案2
去掉
repackage failed: Unable to find main class
五.解决方案3
修改pom.xml配置文件
六.再次执行 Maven install,一切正常