maven编译源码提示错误,高手请进!

yeyuanzhi2016 2019-03-03 10:11:56
[ERROR]No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git
...全文
508 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
maradona1984 2019-03-21
  • 打赏
  • 举报
回复
这个提示已经相当友好,英语不好,随时准确各种翻译软件啊
XJ云天河 2019-03-21
  • 打赏
  • 举报
回复
JDK没配置好吧
梦里闻落花 2019-03-21
  • 打赏
  • 举报
回复
用谷歌翻译啊,有英文就翻译哈。
Gemini_Kanon 2019-03-21
  • 打赏
  • 举报
回复
[align=left]<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
把这段代码粘贴到你的pom.xml文件中,maven项目需要这个插件进行编译
freekaiQaQ 2019-03-20
  • 打赏
  • 举报
回复
[ERROR]No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 报错信息: 当前环境没有提供编译器。 jdk是不是安装了? 环境变量是不是也相应配置好了?
yeyuanzhi2016 2019-03-17
  • 打赏
  • 举报
回复
哪位高手回复一下,我立马给分!
yeyuanzhi2016 2019-03-08
  • 打赏
  • 举报
回复
yeyuanzhi2016 2019-03-05
  • 打赏
  • 举报
回复
高手在哪?救救我!

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧