【发布时间】:2018-10-10 18:21:25
【问题描述】:
我在这里有一个 Spring Boot 项目:https://github.com/jcasbin/jcasbin-springboot-plugin。我遇到了the following error in Travis CI:
shell
3.43s$ ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
/home/travis/build/jcasbin/jcasbin-springboot-plugin
Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
The command "eval ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V " failed. Retrying, 2 of 3.
mvnw 命令似乎失败了。此文件由我的 IDE 生成:IntelliJ IDEA 2018.1。不知道是干什么用的,为什么会失败?
我已经在 Spring Boot 的 github 问题 here 中提出了一个问题,但 Spring 项目说这是 Maven 包装器的问题,并指出我在这里。我不太明白这是什么意思。这是一个 Maven 错误吗?那么如何修复错误呢?
【问题讨论】:
-
不妨看看How to create a Minimal, Complete, and Verifiable example...我相信没有人愿意从零开始阅读和理解你的代码
-
这不是错误,您需要查看“mvn install”的maven输出日志。
标签: java spring maven spring-boot travis-ci