1、Eclipse中运行Maven打包编译时出现
1.1 Perhaps you are running on a JRE rather than a JDK?
点击查看解决方案(https://blog.csdn.net/raymond27/article/details/54962795)
1.2 Maven build的过程中,报错如下:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:
解决方案,在maven构建的项目中的pom.xml中加入如下:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>