我第一次尝试使用 Eclipse 2018-12 为 XNAT 导入 Gradle 项目。我创建了项目,右键单击,选择 Gradle,然后选择 Existing Gradle Project。导入完成后,SimpleUploadPlugin.java 出现错误 - “无法解析类型 org.apache.ecs.ConcreteElement。它是从所需的 .class 文件间接引用的”。我已经检查过了,我有 commons-lang3-3.8.1.jar。
请问我需要做什么来解决这个问题?
我的 build.gradle 依赖项是:
// TODO: This is a pretty minimal set of dependencies, so don't worry if you need to add more.
dependencies {
implementation("org.nrg.xnat:web") {
transitive = false
}
implementation("org.nrg.xnat:xnat-data-models") {
transitive = false
}
implementation("org.nrg.xdat:core") {
transitive = false
}
implementation "org.nrg:prefs"
implementation "org.nrg:framework"
implementation("turbine:turbine") {
transitive = false
}
implementation("org.apache.velocity:velocity") {
transitive = false
}
implementation("stratum:stratum") {
transitive = false
}
implementation "log4j:log4j"
implementation "io.springfox:springfox-swagger2"
compile group: 'ecs', name: 'ecs', version: '1.4.2'
}