maven configuration environment variables

Nothing today, I mirrored maven to Alibaba Cloud in my own environment, and then changed the storage location of maven. When configuring environment variables, I deleted the JAVA_HOME variable name information above, and after configuring MAVEN, execute mvn -v in cmd When viewing, it will report that the available JAVA_HOME cannot be found. Finally, it is found that MAVEN needs to be in the jdk environment, and JAVA_HOME needs to be configured to the corresponding jdk directory, so that cmd runs maven and it is ok

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324751043&siteId=291194637