Rafael Lisboa
Rafael Lisboa

Reputation: 39

Facing mvn problems

When i´ve try executing any mvn command, console shows this error:

Error: -classpath requires class path specification

How can I solve this error?

I´m using apache-maven-3.8.3 version on Windows 10 OS. My M2_HOME variable is in C:\apache-maven-3.8.3\, and JAVA_HOME is in C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\.

Upvotes: 0

Views: 1492

Answers (1)

Rafael Lisboa
Rafael Lisboa

Reputation: 39

With a help of Gerold Broser comment, there is the solution: Maven Error: "Error: -classpath requires class path specification"

I downloaded a wrong maven archive: source code, instead of bin code.

Upvotes: 1

Related Questions