使用 mybatis-generator结果生成不了说是pom文件的问题,pom文件需要改动嘛
来源:5-1 大章列表查询功能开发1

菜鸟小oneone
2020-06-26
The project com.imooc:server:0.0.1-SNAPSHOT (D:\maven_program\course\server\pom.xml) has 1 error
’dependencies.dependency.[com.imooc:server:0.0.1-SNAPSHOT]’ for com.imooc:server:0.0.1-SNAPSHOT is referencing itself. @ line 38, column 21
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
写回答
2回答
-
你这引入的地方不对,自己引入自己了。
你应该在business的pom.xml引入server依赖
00 -
菜鸟小oneone
提问者
2020-06-26
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>course</artifactId> <groupId>com.imooc</groupId> <version>0.0.1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>server</artifactId> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- 集成mybatis --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <!-- <!– 热部署DevTools –>--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> <dependency> <groupId>com.imooc</groupId> <artifactId>server</artifactId> </dependency> </dependencies> </project>
这个是我的server 好像也没有什么问题
00
相似问题