当你运行mvn mybatis-generator:generate
出现以下错误时:
[ERROR] No plugin found for prefix 'mybatis-generator' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/apple/.m2/repository), nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public)] -> [Help 1]
不要紧张,先检查你的运行mvn mybatis-generator:generate
时的目录是否在包含pom.xml文件,如果你在target目录允许那就会报错的,你需要切换到包含pom.xml文件的目录下运行,OK!