错误无法解析依赖项 grails [英] Error Failed to resolve dependencies grails

查看:19
本文介绍了错误无法解析依赖项 grails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试运行、清理或编译时收到 Error Failed to resolve dependencies 错误.我的 BuildConfig.groovy 文件如下:

grails.servlet.version = "2.5"//根据目标容器合规性(2.5 或 3.0)而变化grails.project.class.dir = "目标/类"grails.project.test.class.dir = "目标/测试类"grails.project.test.reports.dir = "目标/测试报告"grails.project.target.level = 1.6grails.project.source.level = 1.6//grails.project.war.file = "target/${appName}-${appVersion}.war"//开始公司特定//设置插件目录(在perforce中需要插件)grails.project.plugins.dir="./plugins"//设置grails工作目录(包含代理配置文件)grails.work.dir="./work"//结束公司特定//取消注释(并调整设置)以 fork JVM 以隔离类路径//grails.project.fork = [//运行:[maxMemory:1024, minMemory:64, debug:false, maxPerm:256]//]grails.war.copyToWebInf = { args ->文件集(目录:dbmsScripts"){包括(名称:js/**")包括(名称:css/**")包括(名称:图像/**")包括(名称:dbmsScripts/**")包括(名称:WEB-INF/**")}}grails.project.dependency.resolution = {//继承 Grails 的默认依赖项继承(全局"){//在此处指定依赖项排除;例如,取消注释以禁用 ehcache://排除 'ehcache'}log "verbose"//Ivy 解析器的日志级别,'error'、'warn'、'info'、'debug' 或 'verbose'checksums true//是否在解析时验证校验和legacyResolve false//是否对插件安装进行二次解析,不建议,这里是为了向后兼容存储库{inherits true//是否从插件继承存储库定义grails插件()grailsHome()grailsCentral()行家本地()MavenCentral()//取消注释这些(或添加新的)以启用来自公共 Maven 存储库的远程依赖项解析//mavenRepo "http://snapshots.repository.codehaus.org"//mavenRepo "http://repository.codehaus.org"//mavenRepo "http://download.java.net/maven/2/"//mavenRepo "http://repository.jboss.com/maven2/"mavenRepo "http://repo.grails.org/grails/core/"//可搜索插件需要}依赖{//在此处指定build"、compile"、runtime"、test"或provided"范围下的依赖项,例如//运行时 'mysql:mysql-connector-java:5.1.22'}插件{//运行运行时 ":hibernate:$grailsVersion"运行时:资源:1.2.2"运行时 ":jquery:1.10.2"运行时 ":jquery-ui:1.10.3"运行时:数据库迁移:1.3.2"运行时 ":searchable:0.6.8"//取消注释这些(或添加新的)以启用附加资源功能//运行时":zipped-resources:1.0"//运行时":cached-resources:1.0"//运行时":yui-minify-resources:0.1.5"//建造构建 ":tomcat:$grailsVersion"//编译时间编译':缓存:1.0.1'编译 ':quartz:1.0.1'编译 ':mail:1.0.7'编译 ":class-domain-uml:0.1.5"}}

我过去安装了 quartzmail 插件,它们在 plugins 目录中可用.

当我从源代码管理中签出 new 并尝试运行时,我遇到了问题.调试信息如下:

<预><代码>...==== mavenCentral:尝试过http://repo1.maven.org/maven2/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.pom-- 工件 org.grails.plugins#searchable;0.6.8!searchable.zip:http://repo1.maven.org/maven2/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.zip==== http://repo.grails.org/grails/core/:尝试过http://repo.grails.org/grails/core/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.pom-- 工件 org.grails.plugins#searchable;0.6.8!searchable.zip:http://repo.grails.org/grails/core/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.zip找不到模块:org.grails.plugins#quartz;1.0.1==== grailsPlugins:尝试过-- 工件 org.grails.plugins#quartz;1.0.1!quartz.zip:C:DevelopmentODBC_SGullipalliOrgaDbControl/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginscache-1.0.1/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsclass-domain-uml-0.1.5/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsdatabase-migration-1.3.2/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsgsp-resources-0.4.4/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginshibernate-2.2.4/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-1.10.2/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-1.8.3/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-ui-1.10.3/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsmail-1.0.7/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsquartz-1.0.1/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.plugins esources-1.2/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.plugins esources-1.2.2/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginssearchable-0.6.8/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.plugins omcat-2.2.4/lib/quartz-1.0.1.zipC:DevelopmentODBC_SGullipalliOrgaDbControl.pluginswebxml-1.4.1/lib/quartz-1.0.1.zip==== grailsHome:尝试过C:springsourcegrails-2.2.4/lib/org.grails.plugins/quartz/ivy-1.0.1.xml...==== grailsHome:尝试过C:springsourcegrails-2.2.4srclibs/gsp-resources-0.4.4.xml-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:C:springsourcegrails-2.2.4srclibs/gsp-resources-0.4.4.jar==== grailsHome:尝试过C:springsourcegrails-2.2.4dist/gsp-resources-0.4.4.xml-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:C:springsourcegrails-2.2.4dist/gsp-resources-0.4.4.jar==== grailsHome:尝试过C:DevelopmentODBC_SGullipalliOrgaDbControl.workcached-installed-plugins/gsp-resources-0.4.4.xml-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:C:DevelopmentODBC_SGullipalliOrgaDbControl.workcached-installed-plugins/gsp-resources-0.4.4.jar==== grailsHome:尝试过C:springsourcegrails-2.2.4/plugins/gsp-resources-0.4.4.pom-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:C:springsourcegrails-2.2.4/plugins/gsp-resources-0.4.4.jar==== grailsCentral:尝试过http://grails.org/plugins/grails-gsp-resources/tags/RELEASE_0.4.4/gsp-resources-0.4.4.pom-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:http://grails.org/plugins/grails-gsp-resources/tags/RELEASE_0.4.4/grails-gsp-resources-0.4.4.jar==== localMavenResolver:尝试过C:Userssgullipalli.OS/.m2/repository/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:C:Userssgullipalli.OS/.m2/repository/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar==== mavenCentral:尝试过http://repo1.maven.org/maven2/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:http://repo1.maven.org/maven2/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar==== http://repo.grails.org/grails/core/:尝试过http://repo.grails.org/grails/core/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom-- 工件 org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:http://repo.grails.org/grails/core/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar:::::::::::::::::::::::::::::::::::::::::::::::: 未解决的依赖项 :::::::::::::::::::::::::::::::::::::::::::::::::: org.grails.plugins#resources;1.2.2: 未找到:: org.grails.plugins#jquery;1.10.2: 未找到:: org.grails.plugins#jquery-ui;1.10.3: 未找到:: org.grails.plugins#searchable;0.6.8: 未找到:: org.grails.plugins#quartz;1.0.1: 未找到:: org.grails.plugins#mail;1.0.7: 未找到:: org.grails.plugins#class-domain-uml;0.1.5: 未找到:: org.grails.plugins#gsp-resources;0.4.4: 未找到:::::::::::::::::::::::::::::::::::::::::::::::: 使用详细或调试消息级别以获取更多详细信息解决 [compile] 依赖项...:: 解决依赖项 :: org.grails.internal#OrgaDbControl;0.3.8confs: [编译]...在缓存中找到 org.slf4j#slf4j-api;1.6.2== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->runtime]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->compile]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->master]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->default]缓存:检查缓存:依赖:org.grails#grails-datastore-gorm;1.1.8.RELEASE {compile=[default]}缓存:在缓存中找到的模块修订版:org.grails#grails-datastore-gorm;1.1.8.RELEASE在缓存中找到 org.grails#grails-datastore-gorm;1.1.8.RELEASE== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->runtime]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->compile]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->master]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->default]缓存:检查缓存:依赖:org.grails#grails-datastore-core;1.1.8.RELEASE {compile=[default]}缓存:在缓存中找到的模块修订版:org.grails#grails-datastore-core;1.1.8.RELEASE在缓存中找到 org.grails#grails-datastore-core;1.1.8.RELEASE== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->runtime]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->compile]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->master]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->default]缓存:检查缓存:依赖:org.grails#grails-datastore-simple;1.1.8.RELEASE {compile=[default]}缓存:在缓存中找到的模块修订版:org.grails#grails-datastore-simple;1.1.8.RELEASE在缓存中找到 org.grails#grails-datastore-simple;1.1.8.RELEASE== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->runtime]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->compile]== 解析依赖关系 org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->master]在 C:Userssgullipalli.OS.grailsivy-cache esolved-org.grails.internal-OrgaDbControl-0.3.8.xml 中生成的解析常春藤文件:: 下载工件 ::[不需要] org.codehaus.groovy#groovy-all;2.0.8!groovy-all.jar[不需要] commons-beanutils#commons-beanutils;1.8.3!commons-beanutils.jar[不需要] commons-el#commons-el;1.0!commons-el.jar...[不需要] org.springframework#spring-jms;3.1.4.RELEASE!spring-jms.jar[不需要] org.springframework#spring-orm;3.1.4.RELEASE!spring-orm.jar[不需要] org.springframework#spring-tx;3.1.4.RELEASE!spring-tx.jar[不需要] org.springframework#spring-web;3.1.4.RELEASE!spring-web.jar[不需要] org.springframework#spring-webmvc;3.1.4.RELEASE!spring-webmvc.jar[不需要] org.slf4j#slf4j-api;1.6.2!slf4j-api.jar[不需要] org.grails#grails-datastore-gorm;1.1.8.RELEASE!grails-datastore-gorm.jar[不需要] org.grails#grails-datastore-core;1.1.8.RELEASE!grails-datastore-core.jar[不需要] org.grails#grails-datastore-simple;1.1.8.RELEASE!grails-datastore-simple.jar:: 解析报告 :: 解析 218 毫秒 :: 工件 dl 48 毫秒---------------------------------------------------------------------||模块 ||文物||配置 |数量|搜索|dwnlded|驱逐||数量|减少|---------------------------------------------------------------------|编译|54 |0 |0 |0 ||54 |0 |---------------------------------------------------------------------在 C:Userssgullipalli.OS.grailsivy-cacheorg.grails.internal-OrgaDbControl-compile.xml 中生成的 org.grails.internal#OrgaDbControl;0.3.8 编译报告解析完成(218 毫秒解析 - 48 毫秒下载)|错误无法解析依赖项(在 BuildConfig.groovy 中将日志级别设置为警告"以获取更多信息):- org.grails.plugins:resources:1.2.2- org.grails.plugins:jquery:1.10.2- org.grails.plugins:jquery-ui:1.10.3- org.grails.plugins:searchable:0.6.8- org.grails.plugins:quartz:1.0.1- org.grails.plugins:mail:1.0.7- org.grails.plugins:class-domain-uml:0.1.5- org.grails.plugins:gsp-resources:0.4.4

怎么解决?

解决方案

有时似乎人们在使用这些插件玩捉迷藏.我还有一个较旧的(grails 2.2.5)项目,当我从源代码管理中检查它时它不起作用.这打击了我,因为我在一台没有本地 maven 或 ivy 缓存的新计算机上.

我在 BuildConfig.groovy 的 repositories 部分添加了以下两个 repos

mavenRepo "http://repo.grails.org/grails/core"mavenRepo "http://repo.grails.org/grails/plugins"

并且能够刷新我的项目.

我在这里找到了第一个链接 https://jira.grails.org/browse/GPSEARCHABLE-224 在尝试使可搜索插件工作时.

我在 下载 Grails 插件

中找到了第二个链接

I get Error Failed to resolve dependencies error when I try to run, clean, or compile. My BuildConfig.groovy file is as follows:

grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"

//Start company specific
//set plugin directory (needed for having plugins in perforce)
grails.project.plugins.dir="./plugins"

//set the grails work dir (contains proxy configuration file)
grails.work.dir="./work"
//End company specific

// uncomment (and adjust settings) to fork the JVM to isolate classpaths
//grails.project.fork = [
//   run: [maxMemory:1024, minMemory:64, debug:false, maxPerm:256]
//]

grails.war.copyToWebInf = { args ->
    fileset(dir:"dbmsScripts") {
        include(name: "js/**")
        include(name: "css/**")
        include(name: "images/**")
        include(name: "dbmsScripts/**")
        include(name: "WEB-INF/**")
    }
}


grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "verbose" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        grailsCentral()

        mavenLocal()
        mavenCentral()

        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"

        mavenRepo "http://repo.grails.org/grails/core/" // needed for searchable plugin
    }

    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.

        // runtime 'mysql:mysql-connector-java:5.1.22'

    }

    plugins {
        //Run time
        runtime ":hibernate:$grailsVersion"
        runtime ":resources:1.2.2"
        runtime ":jquery:1.10.2"
        runtime ":jquery-ui:1.10.3"
        runtime ":database-migration:1.3.2"
        runtime ":searchable:0.6.8"
        // Uncomment these (or add new ones) to enable additional resources capabilities
        //runtime ":zipped-resources:1.0"
        //runtime ":cached-resources:1.0"
        //runtime ":yui-minify-resources:0.1.5"

        //Build
        build ":tomcat:$grailsVersion"

        //Compile time
        compile ':cache:1.0.1'
        compile ':quartz:1.0.1'
        compile ':mail:1.0.7'
        compile ":class-domain-uml:0.1.5"

    }

}

I have installed the quartz and mail plugins in the past and they are available in plugins directory.

When I checkout new from source control, and try to run I get the problem. The debug messages as follows:

.
.
.
==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.pom
  -- artifact org.grails.plugins#searchable;0.6.8!searchable.zip:

  http://repo1.maven.org/maven2/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.zip

==== http://repo.grails.org/grails/core/: tried

  http://repo.grails.org/grails/core/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.pom

  -- artifact org.grails.plugins#searchable;0.6.8!searchable.zip:



http://repo.grails.org/grails/core/org/grails/plugins/searchable/0.6.8/searchable-0.6.8.zip

        module not found: org.grails.plugins#quartz;1.0.1

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#quartz;1.0.1!quartz.zip:

      C:DevelopmentODBC_SGullipalliOrgaDbControl/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginscache-1.0.1/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsclass-domain-uml-0.1.5/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsdatabase-migration-1.3.2/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsgsp-resources-0.4.4/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginshibernate-2.2.4/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-1.10.2/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-1.8.3/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsjquery-ui-1.10.3/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsmail-1.0.7/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginsquartz-1.0.1/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.plugins
esources-1.2/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.plugins
esources-1.2.2/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginssearchable-0.6.8/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.plugins	omcat-2.2.4/lib/quartz-1.0.1.zip

      C:DevelopmentODBC_SGullipalliOrgaDbControl.pluginswebxml-1.4.1/lib/quartz-1.0.1.zip

    ==== grailsHome: tried

      C:springsourcegrails-2.2.4/lib/org.grails.plugins/quartz/ivy-1.0.1.xml
.
.
.

==== grailsHome: tried

      C:springsourcegrails-2.2.4srclibs/gsp-resources-0.4.4.xml

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      C:springsourcegrails-2.2.4srclibs/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:springsourcegrails-2.2.4dist/gsp-resources-0.4.4.xml

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      C:springsourcegrails-2.2.4dist/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:DevelopmentODBC_SGullipalliOrgaDbControl.workcached-installed-plugins/gsp-resources-0.4.4.xml

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      C:DevelopmentODBC_SGullipalliOrgaDbControl.workcached-installed-plugins/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:springsourcegrails-2.2.4/plugins/gsp-resources-0.4.4.pom

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      C:springsourcegrails-2.2.4/plugins/gsp-resources-0.4.4.jar

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-gsp-resources/tags/RELEASE_0.4.4/gsp-resources-0.4.4.pom

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      http://grails.org/plugins/grails-gsp-resources/tags/RELEASE_0.4.4/grails-gsp-resources-0.4.4.jar

    ==== localMavenResolver: tried

      C:Userssgullipalli.OS/.m2/repository/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      C:Userssgullipalli.OS/.m2/repository/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      http://repo1.maven.org/maven2/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar

    ==== http://repo.grails.org/grails/core/: tried

      http://repo.grails.org/grails/core/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.pom

      -- artifact org.grails.plugins#gsp-resources;0.4.4!gsp-resources.jar:

      http://repo.grails.org/grails/core/org/grails/plugins/gsp-resources/0.4.4/gsp-resources-0.4.4.jar

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.grails.plugins#resources;1.2.2: not found

        :: org.grails.plugins#jquery;1.10.2: not found

        :: org.grails.plugins#jquery-ui;1.10.3: not found

        :: org.grails.plugins#searchable;0.6.8: not found

        :: org.grails.plugins#quartz;1.0.1: not found

        :: org.grails.plugins#mail;1.0.7: not found

        :: org.grails.plugins#class-domain-uml;0.1.5: not found

        :: org.grails.plugins#gsp-resources;0.4.4: not found

        ::::::::::::::::::::::::::::::::::::::::::::::



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Resolving [compile] dependencies...
:: resolving dependencies :: org.grails.internal#OrgaDbControl;0.3.8
    confs: [compile]
.
.  
.
found org.slf4j#slf4j-api;1.6.2 in cache
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->runtime]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->compile]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.slf4j#slf4j-api;1.6.2 [compile->master]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->default]
cache: Checking cache for: dependency: org.grails#grails-datastore-gorm;1.1.8.RELEASE {compile=[default]}
cache: module revision found in cache: org.grails#grails-datastore-gorm;1.1.8.RELEASE
    found org.grails#grails-datastore-gorm;1.1.8.RELEASE in cache
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->runtime]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->compile]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-gorm;1.1.8.RELEASE [compile->master]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->default]
cache: Checking cache for: dependency: org.grails#grails-datastore-core;1.1.8.RELEASE {compile=[default]}
cache: module revision found in cache: org.grails#grails-datastore-core;1.1.8.RELEASE
    found org.grails#grails-datastore-core;1.1.8.RELEASE in cache
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->runtime]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->compile]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-core;1.1.8.RELEASE [compile->master]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->default]
cache: Checking cache for: dependency: org.grails#grails-datastore-simple;1.1.8.RELEASE {compile=[default]}
cache: module revision found in cache: org.grails#grails-datastore-simple;1.1.8.RELEASE
    found org.grails#grails-datastore-simple;1.1.8.RELEASE in cache
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->runtime]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->compile]
== resolving dependencies org.grails.internal#OrgaDbControl;0.3.8->org.grails#grails-datastore-simple;1.1.8.RELEASE [compile->master]
    resolved ivy file produced in C:Userssgullipalli.OS.grailsivy-cache
esolved-org.grails.internal-OrgaDbControl-0.3.8.xml
:: downloading artifacts ::
    [NOT REQUIRED] org.codehaus.groovy#groovy-all;2.0.8!groovy-all.jar
    [NOT REQUIRED] commons-beanutils#commons-beanutils;1.8.3!commons-beanutils.jar
    [NOT REQUIRED] commons-el#commons-el;1.0!commons-el.jar
.
.
.
[NOT REQUIRED] org.springframework#spring-jms;3.1.4.RELEASE!spring-jms.jar
    [NOT REQUIRED] org.springframework#spring-orm;3.1.4.RELEASE!spring-orm.jar
    [NOT REQUIRED] org.springframework#spring-tx;3.1.4.RELEASE!spring-tx.jar
    [NOT REQUIRED] org.springframework#spring-web;3.1.4.RELEASE!spring-web.jar
    [NOT REQUIRED] org.springframework#spring-webmvc;3.1.4.RELEASE!spring-webmvc.jar
    [NOT REQUIRED] org.slf4j#slf4j-api;1.6.2!slf4j-api.jar
    [NOT REQUIRED] org.grails#grails-datastore-gorm;1.1.8.RELEASE!grails-datastore-gorm.jar
    [NOT REQUIRED] org.grails#grails-datastore-core;1.1.8.RELEASE!grails-datastore-core.jar
    [NOT REQUIRED] org.grails#grails-datastore-simple;1.1.8.RELEASE!grails-datastore-simple.jar
:: resolution report :: resolve 218ms :: artifacts dl 48ms
    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      compile     |   54  |   0   |   0   |   0   ||   54  |   0   |
    ---------------------------------------------------------------------
    report for org.grails.internal#OrgaDbControl;0.3.8 compile produced in C:Userssgullipalli.OS.grailsivy-cacheorg.grails.internal-OrgaDbControl-compile.xml
    resolve done (218ms resolve - 48ms download)
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:resources:1.2.2
- org.grails.plugins:jquery:1.10.2
- org.grails.plugins:jquery-ui:1.10.3
- org.grails.plugins:searchable:0.6.8
- org.grails.plugins:quartz:1.0.1
- org.grails.plugins:mail:1.0.7
- org.grails.plugins:class-domain-uml:0.1.5
- org.grails.plugins:gsp-resources:0.4.4

How could it be resolved?

解决方案

Sometimes it seems like people are playing Hide and Seek with these plugins. I also have an older (grails 2.2.5) project that didn't work when I checked it out of source control. This hit me because I'm on a new computer that didn't have a local maven or ivy cache.

I added the following two repos in the repositories section of BuildConfig.groovy

mavenRepo "http://repo.grails.org/grails/core"
mavenRepo "http://repo.grails.org/grails/plugins"

and was able to get my project to refresh.

I found the first link here https://jira.grails.org/browse/GPSEARCHABLE-224 while trying to get the searchable plugin to work.

I found the second link in Downloading a Grails plugin

这篇关于错误无法解析依赖项 grails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆