首页 > 代码库 > eclipse maven构建

eclipse maven构建

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没问题,则将本地仓库中org\apache\maven\surefire 目录下的内容删除,重新down Dependency试一下.

eclipse maven构建