设置国内的仓库,比如:
<!--阿里仓库-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
参考
例如:gt-main
在mvnrepository(?https://mvnrepository.com/?)中查找gt-main
添加到pom.xml的repositories
<repositories>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
</repository>
</repositories>