错误无法解析依赖关系grails

当我尝试运行,清理或编译时,我收到错误无法解决依赖关系错误。我的BuildConfig.groovy文件如下:
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"

    }

}

我已经安装了石英和邮件插件,它们在插件目录中可用。

当我从源代码控制检出新的,并尝试运行我得到的问题。调试消息如下:

.
.
.
==== 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:\Development\ODBC_SGullipalli\OrgaDbControl/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\cache-1.0.1/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\class-domain-uml-0.1.5/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\database-migration-1.3.2/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\gsp-resources-0.4.4/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\hibernate-2.2.4/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\jquery-1.10.2/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\jquery-1.8.3/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\jquery-ui-1.10.3/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\mail-1.0.7/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\quartz-1.0.1/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\resources-1.2/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\resources-1.2.2/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\searchable-0.6.8/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\tomcat-2.2.4/lib/quartz-1.0.1.zip

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\plugins\webxml-1.4.1/lib/quartz-1.0.1.zip

    ==== grailsHome: tried

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

==== grailsHome: tried

      C:\springsource\grails-2.2.4\src\libs/gsp-resources-0.4.4.xml

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

      C:\springsource\grails-2.2.4\src\libs/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:\springsource\grails-2.2.4\dist/gsp-resources-0.4.4.xml

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

      C:\springsource\grails-2.2.4\dist/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\work\cached-installed-plugins/gsp-resources-0.4.4.xml

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

      C:\Development\ODBC_SGullipalli\OrgaDbControl\.\work\cached-installed-plugins/gsp-resources-0.4.4.jar

    ==== grailsHome: tried

      C:\springsource\grails-2.2.4/plugins/gsp-resources-0.4.4.pom

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

      C:\springsource\grails-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:\Users\sgullipalli.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:\Users\sgullipalli.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:\Users\sgullipalli.OS\.grails\ivy-cache\resolved-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:\Users\sgullipalli.OS\.grails\ivy-cache\org.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

怎么可以解决

有时似乎人们正在玩这些插件的Hide和Seek。
我也有一个较旧的(grails 2.2.5)项目,当我从源代码控制中检查出来时,它不起作用。这打了我,因为我在一台没有本地的maven或ivy缓存的新电脑上。

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

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

并能够让我的项目刷新。

我找到第一个链接https://jira.grails.org/browse/GPSEARCHABLE-224,同时试图让可搜索插件工作。

我在Downloading a Grails plugin发现了第二个链接

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图:提供一种方法顺序访问一个聚合对象中的每个元素,而又不想暴露该对象的内部表示。应用:STL标准库迭代器实现、Java集合类型迭代器等模式结构:心得:迭代器模式的目的是在不获知集合对象内部细节的同时能对集合元素进行遍历操作
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,常见的IO模型有四种:(1)同步阻塞IO(BlockingIO):即传统的IO模型。(2)同步非阻塞IO(Non-blockingIO):默认创建的socket都是阻塞的,非阻塞IO要求socket被设置为NONBLOCK。注意这里所说的N
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定义一系列算法,把他们封装起来,并且使他们可以相互替换,使算法可以独立于使用它的客户而变化。应用:排序的比较方法、封装针对类的不同的算法、消除条件判断、寄存器分配算法等。模式结构:心得:对对象(Context)的处理操作可
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个作用于某对象结构中的各元素的操作,它使你在不改变各元素的类的前提下定义作用于这些元素的新操作。应用:作用于编译器语法树的语义分析算法。模式结构:心得:访问者模式是要解决对对象添加新的操作和功能时候,如何尽可能不修改对象的类的一种方
命令模式(Command)命令模式(Command)[Action/Transaction]意图:将一个请求封装为一个对象,从而可用不同的请求对客户参数化。对请求排队或记录请求日志,以及支持可撤消的操作。应用:用户操作日志、撤销恢复操作。模式结构:心得:命令对象的抽象接口(Command)提供的两个
生成器模式(Builder)生成器模式(Builder)意图:将一个对象的构建和它的表示分离,使得同样的构建过程可以创建不同的表示。 应用:编译器词法分析器指导生成抽象语法树、构造迷宫等。模式结构:心得:和工厂模式不同的是,Builder模式需要详细的指导产品的生产。指导者(Director)使用C
设计模式学习心得《设计模式:可复用面向对象软件的基础》一书以更贴近读者思维的角度描述了GOF的23个设计模式。按照书中介绍的每个设计模式的内容,结合网上搜集的资料,我将对设计模式的学习心得总结出来。网络上关于设计模式的资料和文章汗牛充栋,有些文章对设计模式介绍生动形象。但是我相信“一千个读者,一千个
工厂方法模式(Factory Method)工厂方法模式(Factory Method)[Virtual Constructor]意图:定义一个用于创建对象的接口,让子类决定实例化哪一个类,使一个类的实力化延迟到子类。应用:多文档应用管理不同类型的文档。模式结构:心得:面对同一继承体系(Produc
单例模式(Singleton)单例模式(Singleton)意图:保证一个类只有一个实例,并提供一个访问它的全局访问点。应用:Session或者控件的唯一示例等。模式结构:心得:单例模式应该是设计模式中最简单的结构了,它的目的很简单,就是保证自身的实例只有一份。实现这种目的的方式有很多,在Java中
装饰者模式(Decorator)装饰者模式(Decorator)[Wrapper]意图:动态的给一个对象添加一些额外的职责,就增加功能来说,比生成子类更为灵活。应用:给GUI组件添加功能等。模式结构:心得:装饰器(Decorator)和被装饰的对象(ConcreteComponent)拥有统一的接口
抽象工厂模式(Abstract Factory)抽象工厂模式(Abstract Factory)[Kit]意图:提供一个创建一系列相关或相互依赖对象的接口,而无须指定他们具体的类。应用:用户界面工具包。模式结构:心得:工厂方法把生产产品的方式封装起来了,但是一个工厂只能生产一类对象,当一个工厂需要生
桥接模式(Bridge)桥接模式(Bridge)[Handle/Body]意图:将抽象部分与它的实现部分分离,使他们都可以独立的变化。应用:不同系统平台的Windows界面。模式结构:心得:用户所见类体系结构(Window派生)提供了一系列用户的高层操作的接口,但是这些接口的实现是基于具体的底层实现
适配器模式(Adapter)适配器模式(Adapter)[Wrapper]意图:将类的一个接口转换成用户希望的另一个接口,使得原本由于接口不兼容而不能一起工作的类可以一起工作。应用:将图形类接口适配到用户界面组件类中。模式结构:心得:适配器模式一般应用在具有相似接口可复用的条件下。目标接口(Targ
组合模式(Composition)组合模式(Composition)意图:将对象组合成树形结构以表示“部分-整体”的层次结构,使得用户对单个对象和组合对象的使用具有一致性。应用:组合图形、文件目录、GUI容器等。模式结构:心得: 用户(Client)通过抽象类(Component)提供的公用接口统一
原型模式(Prototype)原型模式(Prototype)意图:用原型实例制定创建对象的种类,并且通过拷贝这些原型创建新的对象。应用:Java/C#中的Clonable和IClonable接口等。模式结构:心得:原型模式本质上就是对象的拷贝,使用对象拷贝代替对象创建的原因有很多。比如对象的初始化构
什么是设计模式一套被反复使用、多数人知晓的、经过分类编目的、代码 设计经验 的总结;使用设计模式是为了 可重用 代码、让代码 更容易 被他人理解、保证代码 可靠性;设计模式使代码编制  真正工程化;设计模式使软件工程的 基石脉络, 如同大厦的结构一样;并不直接用来完成代码的编写,而是 描述 在各种不同情况下,要怎么解决问题的一种方案;能使不稳定依赖于相对稳定、具体依赖于相对抽象,避免引
单一职责原则定义(Single Responsibility Principle,SRP)一个对象应该只包含 单一的职责,并且该职责被完整地封装在一个类中。Every  Object should have  a single responsibility, and that responsibility should be entirely encapsulated by t
动态代理和CGLib代理分不清吗,看看这篇文章,写的非常好,强烈推荐。原文截图*************************************************************************************************************************原文文本************
适配器模式将一个类的接口转换成客户期望的另一个接口,使得原本接口不兼容的类可以相互合作。
策略模式定义了一系列算法族,并封装在类中,它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。