run as --> maven install
1.No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
无JDK编译环境,解决办法:添加JDK,注意保留JRE运行环境
2.Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
解决办法
(1)pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>
<version>${your.version}</version>
<configuration> <skip>true</skip> </configuration> </plugin>
(2)如果pom.xml没问题,则将本地仓库中orgapachemavensurefire 目录下的内容删除,重新down Dependency试一下.