iSafeBlue / TrackRay

溯光 (TrackRay) 3 beta⚡渗透测试框架(资产扫描|指纹识别|暴力破解|网页爬虫|端口扫描|漏洞扫描|代码审计|AWVS|NMAP|Metasploit|SQLMap)
GNU General Public License v3.0
2.03k stars 373 forks source link

maven出问题了,百度是都是win的解决方法,大佬帮帮看一下呗 #12

Open void-ll opened 5 years ago

void-ll commented 5 years ago

[INFO] trackray framework ................................. SUCCESS [ 0.397 s] [INFO] base ............................................... FAILURE [ 9.057 s] [INFO] module ............................................. SKIPPED [INFO] web ................................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.281 s [INFO] Finished at: 2019-07-01T20:41:39+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project base: 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :base

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

你装的应该是 JRE 不是 JDK,卸掉重装 JDK。

void-ll commented 5 years ago

⚡ root@kali  ~  java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1-b01) OpenJDK 64-Bit Server VM (build 25.212-b01, mixed mode) ⚡ root@kali  ~  mvn --version Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "linux", version: "4.19.0-kali5-amd64", arch: "amd64", family: "unix"

安装的是jdk1.8啊

iSafeBlue commented 5 years ago

你这是 kali 自带的 jdk 吗?如果是的话那应该是没有问题的。

blockchainguard commented 5 years ago

需要联网才能编译成功

kay6666 commented 5 years ago

我也遇到了这个问题,先直接上解决方法。 https://wiki.jikexueyuan.com/project/linux-in-eye-of-java/Maven-Install-And-Settings.html https://blog.csdn.net/DATA8866/article/details/60869118

我当时查了很多教程也不行,其中一条说不可以使用open那个jdk。要使用oracle的 我也就重新弄了个oracle的。还有一条就是maven的变量问题。非常多样,同样作为一个新手只能帮您到这了!