配置国内镜像
设置国内的仓库,比如:
XML
<!--阿里仓库-->
<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
XML
<repositories>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
</repository>
</repositories>