maven 打包报错
2024-10-20 06:18:30
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building doctor-web-single 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ doctor-web-single ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 55 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ doctor-web-single ---
[INFO] Compiling 19 source files to D:\work\work_zhicall_mobile_for_IV\mhospital-doctor\doctor-web-single\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.8.0_144\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.449 s
[INFO] Finished at: 2018-03-29T09:38:35+08:00
[INFO] Final Memory: 12M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project doctor-web-single: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre1.8.0_144\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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
解决办法:
最新文章
- 编写高质量代码:改善Java程序的151个建议(第8章:异常___建议114~117)
- php上传大文件设置方法
- Android序列化之Serializable和Parcelable
- increadbuild重装
- (LightOJ 1030)期望dp
- 转:ASCII码表_全_完整版
- tabBar中tabBarItem选中颜色自定义设置
- Centos 下安装Zabbix Linux 客户端
- CCIE-MPLS VPN-实验手册(中卷)
- Spring Kafka和Spring Boot整合实现消息发送与消费简单案例
- 记 Swagger 2
- 【转】如何使用离线博客发布工具发布CSDN的博客文章
- 《Java并发编程的艺术》Java内存模型(三)
- python中get pass用法
- 为什么MacBook装Windows这么火?
- IDEA调试总结(设置断点进行调试)
- Refused to display '[url]' in a frame because it set 'X-Frame-Options' to 'Deny'.
- 移动端click时间、touch事件、tap事件
- linux版本安装pip
- Android学习笔记_23_服务Service之AIDL和远程服务实现进程通信以及进程间传递自定义类型参数
热门文章
- 【Android 工具类】经常使用工具类(方法)大全
- Java类集-set
- servlet--百度百科
- android 类似微信的摇一摇实现
- Spring AOP 面向切面编程相关注解
- python中的多进程处理
- Codeforces 476C Dreamoon and Sums (水
- go项目布局(摘录)
- Xilinx_7_Series_GTX简介
- javascript (function() { /* code */ })() 自执行函数