Failed to execute goal on project xxx could not resolve报错;MyBatis Generator 执行报错;

it2023-07-27  70

MyBatis Generator 是 MyBatis 提供的一个代码生成工具。

微服务项目中使用mybatis generator时;报 Failed to execute goal on project xxx could not resolve  错误。

修改xml相关 mybatis generator 配置如下。希望能解决你的问题。

<build> <plugins> <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> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> <executions> <execution> <id>Generate Mybatis Artifacts</id> <goals> <goal>generate</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.5</version> </dependency> </dependencies> </plugin> </plugins> </build>

 

最新回复(0)