1. 分布式项目打包失败:
(1)添加打包插件,跳过测试类打包:
<!--打包和tomcat -->
<build>
<plugins>
<!--跳过测试类打包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
(2)jre/jdk问题:右键项目->Build Path->Configure Build Path…换成自己的jdk
igure Build Path…换成自己的jdk