>PROBLEM
Attempt to run a mvn command, for instance:
mvn -version
Returns:
<!--Could not find or load main class ...
Caused by: java.lang.ClassNotFoundException: ...-->
>SOLUTION
Check your envvars (environment variables).
The configuration shall be something like this:
M2_HOME = C:\apache-maven
MAVEN_OPTS=-Xms256m -Xmx512m
Path=%Path%;%M2_HOME%\bin
For some mistake, you may have a misconfiguration. For example:
***WRONG:
MAVEN_OPTS=-%M2_HOME%\bin
>ENV
Windows 10
apache-maven
@CTL: y;faq-Error: Could not find or load main class...Caused by: java.lang.ClassNotFoundException:<memo<maven;.
No comments:
Post a Comment