简体   繁体   中英

Mvn clean install error

I wrote some code with Sping boot. Everything is working. I wanted to generate fat jar file with using Maven. I entered to my project and wroted this to cmd line: "mcn clean install". This should generate this jar file, but It showed me this error:

error

My friend, on linux tried do the same and there is not erroros. Jar file was generated. So what's wrong?

It looks like you've set your JAVA_HOME variable to a JRE directory. Change it to a JDK so that maven can find javac and compile your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM