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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章

运行maven项目时出现一下问题:“ Failed to execute goal org.apache.maven.plugins“

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile

maven报错---Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-c

Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0