首页 > 代码库 > Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate

(1)将Maven项目先clean,接着install下

(2)运行mvn mybatis-generator:generate命令

注意修改generatorConfig.xml的location:

<generatorConfiguration>
    <classPathEntry
            location="C:\Users\zhaoliang\.m2\repository\mysql\mysql-connector-java\5.1.40\mysql-connector-java-5.1.40.jar"/>

我这里就因为这个原因纠结了几分钟,同事用的是mac电脑,和windows路径不一样,一直报错

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate