Unknown lifecycle phase "mybatis-generator.generate"

来源:2-4 Mybatis自动生成器使用方式

慕码人6596575

2019-01-10 13:29

在idea 运行run mybatis-generator.generate 报错?

[WARNING] 

[WARNING] Some problems were encountered while building the effective settings

[WARNING] Unrecognised tag: 'id' (position: START_TAG seen ...</mirror>\n     -->\n\t <id>... @159:7)  @ I:\Maven\settings.xml, line 159, column 7

[WARNING] 

[INFO] Scanning for projects...

[INFO] 

[INFO] ---------------------< com.miaoshaproject:miaosha >---------------------

[INFO] Building miaosha 1.0-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.570 s

[INFO] Finished at: 2019-01-10T11:26:20+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Unknown lifecycle phase "mybatis-generator.generate". 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]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException


写回答 关注

1回答

  • 慕码人6596575
    2019-01-10 13:41:46

    已解决,

    mybatis-generator.generate是错的, 应该是 mybatis-generator:generate

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49066 学习 · 954 问题

查看课程

相似问题