springboot中flyway的使用

笑笑虎Hello 发布于 2018/03/13 01:06
阅读 1K+
收藏 1

开源之夏第三届火热来袭,高校学生参与赢万元奖金!>>>

用maven构建的springboot项目,添加了flyway,之后运行mvn flyway:info为什么失败呢?我在pom.xml中配置了

<dependency>
   <groupId>org.flywaydb</groupId>
   <artifactId>flyway-core</artifactId>
</dependency>
<plugin>
   <groupId>org.flywaydb</groupId>
   <artifactId>flyway-maven-plugin</artifactId>
   <version>4.2.0</version>
   <configuration>
      <url>jdbc:mysql://localhost/test?useSSL=false&amp;useUnicode=true&amp;characterEncoding=utf-8</url>
   </configuration>
</plugin>

[INFO] BUILD FAILURE

[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
有大佬碰到过吗?怎么解决的啊?

加载中
0
zhuweihong
zhuweihong

dependcy中加版本,url没加端口

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部
返回顶部
顶部