问题 :Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project agent_api: There are test failures.
解决:
在提示报错模块的pom文件中添加如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version><!--这里的版本要和上面的报错中一致-->
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
然后重新编译即可