1. Scene
I uploaded maven3.8.4 that I downloaded before to the server, decompressed it, and then configured the environment variables. run:
mvn -v
报错:Maven Error: Could not find or load main class org.codehaus.plexus.classwords.launcher.Launc
2. Solve
Go to the official website again to download the new package, upload and decompress it, and it will be normal. I don’t know why, but it is normal. The same is true for jdk.
maven official website:
Direct link: