Plugin 'org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7' not found
时间: 2023-09-27 11:08:36 浏览: 106
这个错误可能是因为你在 Maven 的项目中没有添加正确的插件依赖。首先,确认你在项目的 pom.xml 文件中添加了以下插件依赖:
```
<build>
<plugins>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.23</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
```
确认你的 Maven 仓库中已经存在该插件的版本 1.3.7,你可以通过以下命令来查找你的本地仓库中是否有该插件:
```
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -Dartifact=org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7
```
如果本地仓库中没有该插件,你需要在 pom.xml 文件中添加 MyBatis Generator 的 Maven 仓库地址:
```
<repositories>
<repository>
<id>mybatis-releases</id>
<url>https://repo1.maven.org/maven2/org/mybatis</url>
</repository>
</repositories>
```
然后重新运行 Maven 命令来下载并安装插件:
```
mvn clean install
```
如果问题依然存在,请检查你的 Maven 配置和项目设置是否正确,或者尝试删除本地仓库中的插件缓存并重新下载。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![jar](https://img-home.csdnimg.cn/images/20210720083455.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)