当我尝试执行任何mvn命令时,控制台显示以下错误:
Error: -classpath requires class path specification
如何解决此错误?
我在Windows 10操作系统上使用apache-maven-3.8.3版本。我的M2_HOME
变量在C:\apache-maven-3.8.3\
中,JAVA_HOME
在C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\
中。
发布于 2021-10-28 11:58:59
在Gerold Broser
注释的帮助下,有了解决方案:Maven Error: "Error: -classpath requires class path specification"
我下载了一个错误的maven归档文件:源代码,而不是bin代码。
https://stackoverflow.com/questions/69744875
复制相似问题