电子商务平台源码请加企鹅求求:一零三八七七四六二六。用java实施的电子商务平台太少了,使用spring cloud技术构建的b2b2c电子商务平台更少,大型企业分布式互联网电子商务平台,java 推出PC+微信+APP+云服务的云商平台系统,其中包括B2B、B2C、C2C、O2O、新零售、直播电商等子平台。java
一.错误信息spring
SpringBoot进行Maven install操做时报repackage failed: Unable to find main class -> [Help 1]的错误,信息以下apache
[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] maven
[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.spring-boot
[ERROR] ui
[ERROR] For more information about the errors and possible solutions, please read the following articles:debug
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionExceptionorm
二.错误缘由
由于没有正式环境的入口类,项目结构以下:
repackage failed: Unable to find main class
pom.xml文件的<build>配置信息以下:
repackage failed: Unable to find main class
三.解决方案1
pom.xml文件的<build>中指定入口类,代码以下
<configuration>
<mainClass>com.qfx.App</mainClass>
</configuration>
如图
repackage failed: Unable to find main class
四.解决方案2
去掉<build>配置信息中spring热部署的配置,如图
repackage failed: Unable to find main class
五.解决方案3
修改pom.xml配置文件<build>内容以下,添加一个<pluginManagement>标签,代码以下
<build>
<finalName>test</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<!-- spring热部署 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.8.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
六.再次执行 Maven install,一切正常