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

前端 未结 3 1926
梦如初夏
梦如初夏 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 21:59

    You're missing the .mvn folder in your git repository. You should have a folder called .mvn which contains the files wrapper/maven-wrapper.jar, wrapper/maven-wrapper.properties and jvm.config. Perhaps you missed it because it's a hidden folder.

    Try doing git add -f .mvn from the command line then commit and push.

提交回复
热议问题