mybatisplus代码自动生成baomidou包引入失败

2021-02-02 13:20发布

mybatisplus代码自动生成import包失败,jar包在maven仓库下载成功并且已导入

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <packaging>pom</packaging> <modules> <module>xinguan-base-common</module> <module>xinguan-base-web</module> </modules> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.xizhou</groupId> <artifactId>xinguan-parent</artifactId> <version>0.0.1-SNAPSHOT</version> <name>xinguan-parent</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> <!--mybatis-plus--> <mp.version>3.3.1</mp.version> <!--swagger--> <swagger.version>2.7.0</swagger.version> <!--velocity模板引擎--> <velocity.version>2.2</velocity.version> <!--java连接mysql--> <mysql-version>5.1.40</mysql-version> <!--knife4j的版本--> <knife4j.version>2.0.4</knife4j.version> </properties> <dependencies> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>${mp.version}</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity-engine-core</artifactId> <version>${velocity.version}</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>${swagger.version}</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>${swagger.version}</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql-version}</version> </dependency> <!--mybatis-plus自动代码生成--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId> <version>${mp.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>

5条回答
简一商业
1楼-- · 2021-02-02 13:36

idea也重启了几遍,还是爆红

strive_day
2楼-- · 2021-02-02 13:39

哪个不是jar包,是doc文档文件,maven引入有两种类型包,一种是jar,实现功能的,一种是doc.jar,jar包源文件。这个不影响使用,查看源代码有影响。

weixin_48781051
3楼-- · 2021-02-02 13:44

重新导入了很多遍

七武海狂新
4楼-- · 2021-02-02 13:49

再重新导一下呢 右上角那个reimport

秦皇岛
5楼-- · 2021-02-02 13:58

大佬,那怎么修改呢