Mybatis generate出错
来源:5-9 mybatis三剑客之mybatis-generator配置
慕粉2139098426
2018-08-22
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Cannot resolve classpath entry: D:\mmall\src\main\resources -> [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]
这个 D:\mmall\src\main\resources 是我存放datasource.properties和generatorConfig.xml的,不知道为什么会抱着个错误。。。
1回答
-
polo哦
2018-08-22
你将你的pom里面的generator换成我的试试
<!-- mybatis逆向工程关键 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
<overwrite>false</overwrite>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
</dependency>
</dependencies>
</plugin>
012019-01-11
相似问题