我是靠谱客的博主 超帅大炮,这篇文章主要介绍org.mybatis.generator版本不对应错误,现在分享给大家,希望可以做个参考。

错误代码

复制代码
1
2
3
4
5
6
7
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project unkown: http://www.mybatis.org/dtd/mybatis-generator-config_3_0.dtd -> [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/MojoExecutionException

maven代码

复制代码
1
2
3
4
5
6
7
8
9
<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version> <configuration> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> </plugin>

generatorConfig.xml代码

复制代码
1
2
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 3.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_3_0.dtd">

解决方法:

generatorConfig.xml中的

复制代码
1
2
3
4
``` <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 3.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_3_0.dtd"> ```

与maven中的

复制代码
1
2
<artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version>

版本不符合,将两处是使用为同一版本即可解决错误!

最后

以上就是超帅大炮最近收集整理的关于org.mybatis.generator版本不对应错误的全部内容,更多相关org内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(68)

评论列表共有 0 条评论

立即
投稿
返回
顶部