Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

前端 未结 3 1922
梦如初夏
梦如初夏 2021-02-06 21:36

I have a spring boot project here: https://github.com/jcasbin/jcasbin-springboot-plugin. I encountered the following error in Travis CI:

shell
3.43s$ ./mvnw inst         


        
3条回答
  •  清酒与你
    2021-02-06 22:09

    Phil's answer is correct. And here is how to create .mvn directory with needed jar inside.
    I found the answer here (https://www.baeldung.com/maven-wrapper)

    If you have maven and you want to make maven wrapper working, you need to setup maven wrapper:

    mvn -N io.takari:maven:wrapper
    

    It should create .mvn directory and put needed jar in it.

提交回复
热议问题