maven项目进行debug as->maven test构建时报error:running on a JRE rather than a JDK? _02
2017-04-04 14:52
316 查看
maven项目进行debug as->maven test构建时报error:running on a JRE rather than a JDK? _02
问题描述:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project WebGubaV3_maven: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
解决办法:
1.选中maven项目右键->properties->Java Build Path->Libraries子窗口选中复选框“JRE System Library[jdk1.8.0_60]”进行打钩
->点击"Apply","Ok"按钮
2.选中maven项目右键->Maven->Update Project
3.选中maven项目右键->Debug As->Maven Test
如果看到Build Success说明构建成功
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
问题描述:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project WebGubaV3_maven: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
解决办法:
1.选中maven项目右键->properties->Java Build Path->Libraries子窗口选中复选框“JRE System Library[jdk1.8.0_60]”进行打钩
->点击"Apply","Ok"按钮
2.选中maven项目右键->Maven->Update Project
3.选中maven项目右键->Debug As->Maven Test
如果看到Build Success说明构建成功
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
相关文章推荐
- Maven错误:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?的解决方法
- 解决maven项目install之后报出Perhaps you are running on a JRE rather than a JDK?错误
- Maven项目出现Perhaps you are running on a JRE rather than a JDK?
- Maven Compilation Error:No compiler is provided...you are running on a JRE rather than a JDK
- Maven项目出现Perhaps you are running on a JRE rather than a JDK?
- 【maven】maven的web项目打包报错:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
- eclipse 创建的maven项目debug出现Perhaps you are running on a JRE rather than a JDK?问题
- Eclipse中运行Maven打包编译时出现:Perhaps you are running on a JRE rather than a JDK?
- maven No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Maven打包编译时出现:Perhaps you are running on a JRE rather than a JDK?
- maven Perhaps you are running on a JRE rather than a JDK?
- [java]Eclipse中运行Maven打包编译时出现:Perhaps you are running on a JRE rather than a JDK?
- maven:Perhaps you are running on a JRE rather than a JDK
- Maven No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- Maven整合解决Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Perhaps you are running on a JRE rather than JDK
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?