mybatis-generator插件执行报错:Cannot resolve classpath entry


 

记录一个小问题

使用了mybatis-generator插件自动生成实体类,DAO,Mapper,在执行时报错。报错信息如下

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project onlineStudyManager: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: Cannot resolve classpath entry: D:\managersrc\main\resources

查看mybatis-generator.xml未找到有关该路径的相关信息

Cannot resolve classpath entry 翻译:不能解决类路径条目

D:\managersrc\main\resources该路径与代码文件路径有关,但是错误的

正确的为 D:\manager\src\main\resources

<resource>
     <directory>${basedir}src/main/resources</directory>
     <excludes>
           <exclude>lib/*.jar</exclude>
     </excludes>
</resource>

路径修改为 ${basedir}/src/main/resources 解决问题


---------------------
作者:黄三岁TYOB
来源:CSDN
原文:https://blog.csdn.net/qq_20492999/article/details/80763550
版权声明:本文为博主原创文章,转载请附上博文链接!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM