【问题标题】:Eclipse error during resolving gradle dependency解决 gradle 依赖关系期间的 Eclipse 错误
【发布时间】:2015-12-06 18:16:16
【问题描述】:

我已经将依赖com.sun.mail:javax.mail:1.5.4添加到build.gradle,但是Eclipse没有解决这个依赖并抛出这个错误

Illegal entry in Gradle Dependencies: D:/Programs/Eclipse/unresolved dependency - com.sun.mail javax.mail 1.5.4 PluginName      Unknown org.springsource.ide.eclipse.gradle.core.classpathcontainer

我尝试清理和重建项目,多次刷新依赖项,但我仍然收到相同的错误并且依赖项没有下载。有什么问题?

我的build.gradle 文件:

apply plugin: 'java'
apply plugin: 'eclipse'

sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.0'

jar {
    manifest {
        attributes 'Implementation-Title': 'PluginName',
               'Implementation-Version': version
    }
}

repositories {
    mavenCentral()
    maven {
        name 'Sponge maven repo'
        url 'http://repo.spongepowered.org/maven'
    }
}

dependencies {
    compile 'org.spongepowered:spongeapi:2.1-SNAPSHOT'
    compile 'com.sun.mail:javax.mail:1.5.4'
}

test {
    systemProperties 'property': 'value'
}

uploadArchives {
    repositories {
        flatDir {
            dirs 'repos'
        }
    }
}

【问题讨论】:

    标签: java eclipse gradle dependencies


    【解决方案1】:

    我绝对不知道为什么,但是它开始工作并且刚刚下载了依赖项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-08
      • 1970-01-01
      • 2019-12-14
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多