geotools相关依赖无法获取
作者:互联网
状况描述:
POM中添加geotools依赖失败,使用各种仓库镜像(包括网上找到的使用阿里仓库镜像的解决办法),仍然无法解决问题。
即使从其它地方拉去相应jar包,Maven-Dependencies处仍然报红色波浪线
解决步骤:
-
settings.xml
注:ali仓库中关于geotools的相关只有空文件夹无实际jar包(其它国内仓库镜像不清楚,了解到相关信息是国内限制,需要科学上网后获取) -
pom.xml
<repositories>
<repository>
<id>osgeo</id>
<name>OSGeo Release Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
<snapshots><enabled>false</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
<repository>
<id>osgeo-snapshot</id>
<name>OSGeo Snapshot Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>false</enabled></releases>
</repository>
</repositories>
标签:xml,依赖,geotools,Repository,仓库,获取,镜像,osgeo 来源: https://blog.csdn.net/weixin_42484045/article/details/110920772