【发布时间】:2015-07-26 15:06:50
【问题描述】:
在 build.gradle 中,我们将依赖项指定为
compile group: 'org.apache.pig', name: 'pigunit', version: '0.11.0-cdh4.5.0', transitive: true
运行 gradle cleanEclipse eclipse 设置项目(将 jar 添加到类路径)
但是,对于某些 API,只有 maven 依赖项可用 (我正在尝试从 https://jersey.java.net/download.html 运行 jersey 2.x 示例包,它只提供 pom.xml)
编辑: 我知道我可以指定 compile group: 'groupId', name: 'artifactId', version: 'version' gradle 但是为所有依赖项手动执行或编写程序这样做不应该是自然的 gradle 方式。 Gradle提供了一个maven插件http://gradle.org/docs/current/userguide/maven_plugin.html.I没试过但是应该可以的
【问题讨论】: