问题
I want import library org.geotools.
Added raw compile group: 'org.geotools', name: 'geotools', version: '16.1'
or compile group: 'org.geotools', name: 'geotools', version: '16.1', ext: 'pom'
and repo:
repositories {
mavenLocal()
maven { url 'http://repo.boundlessgeo.com/main' }
maven { url "http://download.osgeo.org/webdav/geotools/" }
maven { url "http://download.java.net/maven/2" }
maven { url "http://repo.opengeo.org" }
mavenCentral()
}
BUILD SUCCESSFUL in 47s but in external libraries it not found.
回答1:
I not a gradle user but don't you need to add some actual dependencies?
For GeoTools I usually start with at least some of these:
- gt-main
- gt-metadata
- gt-referencing
and a datasource or 2.
来源:https://stackoverflow.com/questions/50738332/gradle-not-imported-dependency-with-extpom