当然你的先看一下是否刷新了。
就只是这样一个包,
<!-- https://mvnrepository.com/artifact/org.gdal/gdal -->
<dependency>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
<version>2.4.0</version>
<type>pom</type>
</dependency>
父pom.xml管理定义了是pom类型,子pom.xml不写<type>pom</type>项目中就不能正常使用相关类.
导致无法正常加载,去掉 <type>pom</type>就好了,然后刷新一下正常使用。
记下此坑-->代码祭天,法力无边。