请帮我找到以下依赖包的国内可用镜像,并以setting.xml的形式给出:Downloading from central: https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.18/mysql-connector-java-8.0.18.jar Downloading from central: https://repo.maven.apache.org/maven2/org/assertj/assertj-core/3.13.2/assertj-core-3.13.2.jar
时间: 2023-12-17 07:06:11 浏览: 335
Maven问题:Downloading from central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-a
5星 · 资源好评率100%
以下是您所需的依赖包的国内可用镜像以及对应的setting.xml配置:
1. mysql-connector-java-8.0.18.jar:
- 国内镜像地址: https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.18/mysql-connector-java-8.0.18.jar
- setting.xml配置:
```xml
<mirrors>
<mirror>
<id>aliyun-maven</id>
<mirrorOf>central</mirrorOf>
<name>Aliyun Maven Mirror</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
</mirrors>
```
2. assertj-core-3.13.2.jar:
- 国内镜像地址: https://repo1.maven.org/maven2/org/assertj/assertj-core/3.13.2/assertj-core-3.13.2.jar
- setting.xml配置:
```xml
<mirrors>
<mirror>
<id>aliyun-maven</id>
<mirrorOf>central</mirrorOf>
<name>Aliyun Maven Mirror</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
</mirrors>
```
请将上述配置添加到您的~/.m2/settings.xml文件中的`<mirrors>`标签内,如果settings.xml文件不存在,请创建一个新的文件。
阅读全文