[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com.yusys.pro:NewsManagement:war:0.0.1-SNAPSHOT

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 176, column 23

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building NewsManagement Maven Webapp 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] >>> jetty-maven-plugin:8.1.16.v20140903:run (default-cli) > test-compile @ NewsManagement >>>

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ NewsManagement ---

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] Copying 5 resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ NewsManagement ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 9 source files to D:\worksheet\NewsManagement\target\classes

[INFO] -------------------------------------------------------------

[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: 2.264 s

[INFO] Finished at: 2018-01-13T08:06:00+08:00

[INFO] Final Memory: 9M/153M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project NewsManagement: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[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

这个错误是运行环境的错误,意思是运行时在jre上运行,不是在jdk上运行,故而需要更改运行环境切换在jdk上运行。

解决办法是:window---->preferences选择如下切换

如果没有添加jdk,则add

next

选择jdk的安装包,如下

然后finish,并勾选第一张图的jdk,点击OK ,运行环境切换完成。

最新文章

  1. NoSql1 在Linux(CentOS)上安装memcached及使用
  2. 【Java并发编程实战】----- AQS(二):获取锁、释放锁
  3. DotNet处理服务器路径的方法
  4. 两种include方式及filter中的dispatcher解析
  5. 流式布局&固定宽度&响应式&rem
  6. Nexus私服忘记用户名密码,Nexus私服如何找回用户名密码
  7. ftp 操作,支持断点续传或者继续下载。
  8. MATLAB学习笔记(二)——主要是MATLAB的矩阵知识
  9. SecureCrt脚本(二)二级对象之Dialog
  10. Sublime Text生成html标签快捷键
  11. 自动化高效css开发,畅谈less的灵活变化
  12. [转]Mac常用软件推荐
  13. 【转载】Linux cgroup资源隔离各个击破之 - io隔离
  14. Android官方命令深入分析之hprof-conv
  15. 避免jquery的click多次绑定方法
  16. goland 文件头注释
  17. css属性—position的使用与页面的分层介绍
  18. 【剑指offer】从尾到头翻转打印单链表
  19. metasploit framework(二):记一次入侵
  20. redission 分布式锁

热门文章

  1. error C2664: “FILE *fopen(const char *,const char *)”: 无法将参数 1 从“LPCTSTR”转换为“const char *”
  2. C 如何判断编译器是否支持C90 C99?
  3. 题解 CF165D 【Beard Graph】
  4. 如何安装第三方模块#Python
  5. redis单线程为什么快?
  6. 利用Powerdesigner16.5(64位)连接64位oracle 配置系统odbc驱动
  7. java字符集编码乱码问题
  8. mysqlworkbench导入sql文件
  9. Linux 命令 - mknod
  10. 吴裕雄--天生自然JAVA面向对象高级编程学习笔记:接口的基本实现