打包错误关于

来源:12-2 maven高级使用

夏冬之Python

2018-08-28


[ERROR] COMPILATION ERROR :  [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.414 s [INFO] Finished at: 2018-08-28T14:59:18+08:00 [INFO] Final Memory: 7M/29M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project spring3-mvc-maven-xml-hello-world: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR]  [ERROR] -> [Help 1] [ERROR]  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]  [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 

请问这个怎么解决网上的大多数都是window平台的解决方法没有linux的解决方式 mvn clean package

写回答

1回答

编程浪子

2018-08-29

把window平台的jdk安装并配置环境变量

0
3
编程浪子
sudo yum -y install java-1.8.0-openjdk*
2018-08-30
共3条回复

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程