我已经成功安装了maven,当我检查Maven版本时,它会显示以下信息:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:4
7-05:00)
Maven home: C:\Program Files\apache-maven-3.3.9\bin\..
Java version: 1.8.0_73, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_73\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
我已经为Karma下载了Zip文件夹,并按照网站https://github.com/usc-isi-i2/Web-Karma/wiki/Installation%3A-Source-Code#system-requirements
中提到的karma工具安装提及的说明进行操作我已将sip文件夹解压缩到一个目录并打开一个shell(命令提示符)并导航到我解压缩Karma的目录。在shell提示符下键入mvn clean install
我收到以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project karma-util: Fatal error compiling: direct
ory not found: C:\Program Files\Web-Karma-master\karma-util\target\classes -> [H
elp 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :karma-util
我不确定我错在哪里。任何帮助表示赞赏。
答案 0 :(得分:1)
以前我在C盘中尝试使用Program Files文件夹,所以无法安装。我改变了我现在可以安装它的文件夹。