由于是在国内,访问国外的网站速度不够快。下面给出直接在build.gradle或者pom.xml里配置阿里云仓库的代码
Gradle配置
- build.gradle
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
Maven配置
- pom.xml
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
</repositories>