调用执行generator插件时报错

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

qq_慕神7038086

2020-06-15 15:10

"C:\Program Files\Java\jdk1.8.0_221\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\IdeaProjects\miaosha "-Dmaven.home=F:\IDEA\idea\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=F:\IDEA\idea\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=F:\IDEA\idea\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:F:\IDEA\idea\IntelliJ IDEA 2020.1.1\lib\idea_rt.jar=51526:F:\IDEA\idea\IntelliJ IDEA 2020.1.1\bin" -Dfile.encoding=UTF-8 -classpath "F:\IDEA\idea\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;F:\IDEA\idea\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version2020.1.1 mybatis-generator.generate

[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:  0.248 s

[INFO] Finished at: 2020-06-15T14:37:01+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


写回答 关注

2回答

  • 彭于晏2076388
    2020-06-27 22:26:18

    mybatis-generator.generate? 

    命令是 mybatis-generator:generate 是冒号不是点

  • qq_慕神7038086
    2020-06-15 18:11:47

    检查一下有没有<pluginManagement>标签,有点话删掉试试

SpringBoot构建电商基础秒杀项目

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

49065 学习 · 954 问题

查看课程

相似问题