Could not find artifact com.mysql:mysql-connector-j:pom:unknown in nexus-aliyun
时间: 2023-09-26 18:13:21 浏览: 199
EEMD-ICA方法可增强噪声多变量神经数据的伪像抑制
在您提供的引用中,报错"Could not find artifact com.mysql:mysql-connector-j:pom:unknown"表示在nexus-aliyun仓库中找不到com.mysql:mysql-connector-j:pom:unknown的依赖。解决这个问题的方法是为mysql-connector-j指定一个具体的版本。您可以在项目的pom.xml文件中添加以下配置:
```
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
<scope>runtime</scope>
</dependency>
```
这将指定mysql-connector-j的版本为8.0.33,并将其作为运行时依赖。这样,在构建项目时就能从nexus-aliyun仓库中找到正确的依赖。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
阅读全文