我在路径“D:”上执行mvn -v
命令,但输出显示
java [-options] class [args...]
or java [-options] -jar jarfile [args...]
但是我在路径“C:\ Users \ xxx”上执行相同的命令,运行正常。
Apache Maven 3.3.3 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: D:\temp\apache-maven-3.3.3-bin\apache-maven-3.3.3
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_65\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"