常用repo列表
首先介绍一个搜索jar包的常用网址:http://mvnrepository.com/。
如果想知道哪些库比较流行,可以在 https://mvnrepository.com/repos/central 看到。截止2021年9月,最流行的仍然是central这个库。
center
repo配置:
<repository>
<id>central</id>
<!-- This should be at top, it makes maven try the central repo
first and then others and hence faster dep resolution -->
<name>Maven Repository</name>
<url>https://repo1.maven.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
jcenter
repo配置:
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
spring plugins
url:https://repo.spring.io/plugins-release/
sonartype
排名靠前。大名鼎鼎的nexus就是sonartype公司的产品。
url:https://oss.sonatype.org/content/repositories/releases/
spring的几个仓库
repo配置:
<repository>
<id>libs