1、场景
我把之前下好的maven3.8.4上传到服务器,解压,然后配置好环境变量。运行:
mvn -v
报错:Maven Error: Could not find or load main class org.codehaus.plexus.classwords.launcher.Launc
2、解决
重新去官网下载新包,上传解压,就正常了,不知道为什么,但是就是正常了,jdk也是同样的道理。
maven官网:
直达链接:
我把之前下好的maven3.8.4上传到服务器,解压,然后配置好环境变量。运行:
mvn -v
报错:Maven Error: Could not find or load main class org.codehaus.plexus.classwords.launcher.Launc
重新去官网下载新包,上传解压,就正常了,不知道为什么,但是就是正常了,jdk也是同样的道理。
maven官网:
直达链接: