错误提示:
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project zjs-batisGenert: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate failed: An API incompatibility was encountered while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate: java.lang.NoSuchMethodError: org.mybatis.generator.internal.util.ClassloaderUtility.getCustomClassloader(Ljava/util/Collection;)Ljava/lang/ClassLoader;
错误展示:
1.pom.xml文件中
1.1依赖的

1.2管理的插件

2.依赖jar包

在使用mybatis-generator-maven-plugin:1.3.6执行逆向工程时遇到NoSuchMethodError,问题根源在于插件版本与依赖不兼容。通过更新mybatis-generator-core版本为1.3.6并调整pom.xml配置,然后通过右击pom.xml运行maven build生成代码。对于问题的具体原因,作者表示尚不清楚。

771

被折叠的 条评论
为什么被折叠?



