Gradle not imported dependency with ext:pom

不羁的心 提交于 2019-12-11 10:05:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!