设置 Maven 时遇到的问题
2022-09-01 19:37:36
我在安装 Maven 时遇到了困难。
我根据以下方法设置了所有环境变量:http://maven.apache.org/download.html
虽然我使用的是Windows 7,但当我尝试运行命令时,我会得到等。mvn --version
mvn is not recognized as an internal or external command
当我从内部运行它时,我收到错误:src\bin
Exception in thread "main" java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run<URLClassLoader.java:202>
at java.security.AccessController.doPrivleged(Native Method)
...etc
然后:
Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher.