在使用Mybatis自动生成器时,可能出现的错误及解决办法:
错误描述:
[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 p
hases are: validate, initialize, generate-sources, process-sources, generate-res
ources, process-resources, compile, process-classes, generate-test-sources, proc
ess-test-sources, generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test, int
egration-test, post-integration-test, verify, install, deploy, pre-clean, clean,
post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
解决办法:
1.检查连接的url,username,password是否正确;
2.不要加这句
<classPathEntry location&#