Grails升级到2.4.3后,无法解决maven中的依赖关系

时间:2014-09-16 06:01:26

标签: maven grails

我有一个grails 2.3.5项目,其中包含一些需要身份验证的自定义maven插件依赖项,因此我已将以下属性添加到我的GRAILS HOME settings.groovy文件中。

    grails.project.ivy.authentication = {
        credentials {
            realm = "someDuumyValue"
            host = "mavenServerURL"
            username = "john"
            password = "day"
        }
    }

当使用grails buildConfig.grrovy文件内联中的这些凭据时,依赖关系会得到正确解析。但这些解决方案对我来说并不方便。获取依赖项解析错误如下

    | Error Resolve error obtaining dependencies: Failed to read artifact descriptor for com.ab.plugins:someCustomePluginName:zip:1.6.3
    org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact      descriptor for com.cc.plugins:someCustomePluginName:zip:1.6.3
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:335)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:525)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:509)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
        at grails.util.BuildSettings.doResolve(BuildSettings.groovy:514)
        at grails.util.BuildSettings.doResolve(BuildSettings.groovy)
        at grails.util.BuildSettings$_getDefaultRuntimeDependencies_closure17.doCall(BuildSettings.groovy:626)
        at grails.util.BuildSettings$_getDefaultRuntimeDependencies_closure17.doCall(BuildSettings.groovy)
        at grails.util.BuildSettings.getDefaultRuntimeDependencies(BuildSettings.groovy:620)
        at grails.util.BuildSettings.getRuntimeDependencies(BuildSettings.groovy:602)
    Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.ab.plugins:someCustomePluginName:pom:1.6.3 from/to causecode (http://maven.dummyserver.com): Unauthorized (401)

也跟着这些stackoverflow link 它不适合我。

试图将grails项目从2.3.5升级到2.3.7和2.4.x发生相同的依赖性错误。

0 个答案:

没有答案