在 grails 插件安装期间无法解决依赖关系

Posted

技术标签:

【中文标题】在 grails 插件安装期间无法解决依赖关系【英文标题】:Failed to resolve dependencies during grails plugins installation 【发布时间】:2015-05-06 14:02:46 【问题描述】:

我从 PC 中删除了 .grails 文件夹,当我在 Intellij IDE 中打开应用程序时,buildConfig.groovy 中提到的插件开始安装。安装了几个插件,但六个插件无法安装。发生以下错误。

 "C:\Program Files\Java\jdk1.7.0_75\bin\java" -Dgrails.home=C:\grails-2.1.1 -Dbase.dir=F:\Projects\sms-sender "-Dtools.jar=C:\Program Files\Java\jdk1.7.0_75\lib\tools.jar" -Dgroovy.starter.conf=C:\grails-2.1.1/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -Dfile.encoding=UTF-8 -classpath C:\grails-2.1.1\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-1.8.8.jar;C:\grails-2.1.1\dist\grails-bootstrap-2.1.1.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails-2.1.1/conf/groovy-starter.conf idea-print-project-settings
| Loading Grails 2.1.1
| Configuring classpath
:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#shiro;1.1.4

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      F:\Projects\sms-sender/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/ivy-1.1.4.xml

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/jars/shiro-1.1.4.zip

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/bundles/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/cookie-0.51.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/cookie-0.51.xml

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\grails-2.1.1\dist/cookie-0.51.zip

    ==== grailsHome: tried

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

        ::          UNRESOLVED DEPENDENCIES         ::

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

        :: org.grails.plugins#shiro;1.1.4: not found

        :: org.grails.plugins#cookie;0.51: not found

        :: org.grails.plugins#executor;0.3: not found

        :: org.grails.plugins#export;1.6: not found

        :: org.grails.plugins#cxf;1.1.1: not found

        :: org.grails.plugins#audit-logging;1.0.1: not found

        :: org.grails.plugins#twitter-bootstrap;3.0.3: not found

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

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


:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#shiro;1.1.4

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      F:\Projects\sms-sender/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/shiro-1.1.4.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/ivy-1.1.4.xml

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/jars/shiro-1.1.4.zip

      C:\grails-2.1.1/lib/org.grails.plugins/shiro/bundles/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/shiro-1.1.4.xml

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\grails-2.1.1\src\libs/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/shiro-1.1.4.xml

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\grails-2.1.1\dist/shiro-1.1.4.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/shiro-1.1.4.xml

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/shiro-1.1.4.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\grails-2.1.1/plugins/shiro-1.1.4.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-shiro/tags/RELEASE_1.1.4/shiro-1.1.4.pom

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      http://grails.org/plugins/grails-shiro/tags/RELEASE_1.1.4/grails-shiro-1.1.4.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.pom

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.pom

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      C:\Users\Sikander/.m2/repository/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.pom

      -- artifact org.grails.plugins#shiro;1.1.4!shiro.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/shiro/1.1.4/shiro-1.1.4.zip

        module not found: org.grails.plugins#cookie;0.51

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      F:\Projects\sms-sender/lib/cookie-0.51.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/cookie-0.51.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/cookie-0.51.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/cookie-0.51.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/cookie-0.51.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/cookie-0.51.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/cookie/ivy-0.51.xml

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/cookie/jars/cookie-0.51.zip

      C:\grails-2.1.1/lib/org.grails.plugins/cookie/bundles/cookie-0.51.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/cookie-0.51.xml

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\grails-2.1.1\src\libs/cookie-0.51.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/cookie-0.51.xml

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\grails-2.1.1\dist/cookie-0.51.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/cookie-0.51.xml

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/cookie-0.51.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\grails-2.1.1/plugins/cookie-0.51.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-cookie/tags/RELEASE_0.51/cookie-0.51.pom

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      http://grails.org/plugins/grails-cookie/tags/RELEASE_0.51/grails-cookie-0.51.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/cookie/0.51/cookie-0.51.pom

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/cookie/0.51/cookie-0.51.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/cookie/0.51/cookie-0.51.pom

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      C:\Users\Sikander/.m2/repository/org/grails/plugins/cookie/0.51/cookie-0.51.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/cookie/0.51/cookie-0.51.pom

      -- artifact org.grails.plugins#cookie;0.51!cookie.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/cookie/0.51/cookie-0.51.zip

        module not found: org.grails.plugins#executor;0.3

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      F:\Projects\sms-sender/lib/executor-0.3.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/executor-0.3.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/executor-0.3.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/executor-0.3.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/executor-0.3.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/executor-0.3.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/executor/ivy-0.3.xml

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/executor/jars/executor-0.3.zip

      C:\grails-2.1.1/lib/org.grails.plugins/executor/bundles/executor-0.3.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/executor-0.3.xml

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\grails-2.1.1\src\libs/executor-0.3.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/executor-0.3.xml

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\grails-2.1.1\dist/executor-0.3.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/executor-0.3.xml

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/executor-0.3.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\grails-2.1.1/plugins/executor-0.3.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-executor/tags/RELEASE_0.3/executor-0.3.pom

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      http://grails.org/plugins/grails-executor/tags/RELEASE_0.3/grails-executor-0.3.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/executor/0.3/executor-0.3.pom

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/executor/0.3/executor-0.3.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/executor/0.3/executor-0.3.pom

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      C:\Users\Sikander/.m2/repository/org/grails/plugins/executor/0.3/executor-0.3.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/executor/0.3/executor-0.3.pom

      -- artifact org.grails.plugins#executor;0.3!executor.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/executor/0.3/executor-0.3.zip

        module not found: org.grails.plugins#export;1.6

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#export;1.6!export.zip:

      F:\Projects\sms-sender/lib/export-1.6.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/export-1.6.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/export-1.6.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/export-1.6.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/export-1.6.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/export-1.6.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/export/ivy-1.6.xml

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/export/jars/export-1.6.zip

      C:\grails-2.1.1/lib/org.grails.plugins/export/bundles/export-1.6.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/export-1.6.xml

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\grails-2.1.1\src\libs/export-1.6.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/export-1.6.xml

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\grails-2.1.1\dist/export-1.6.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/export-1.6.xml

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/export-1.6.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\grails-2.1.1/plugins/export-1.6.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-export/tags/RELEASE_1.6/export-1.6.pom

      -- artifact org.grails.plugins#export;1.6!export.zip:

      http://grails.org/plugins/grails-export/tags/RELEASE_1.6/grails-export-1.6.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/export/1.6/export-1.6.pom

      -- artifact org.grails.plugins#export;1.6!export.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/export/1.6/export-1.6.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/export/1.6/export-1.6.pom

      -- artifact org.grails.plugins#export;1.6!export.zip:

      C:\Users\Sikander/.m2/repository/org/grails/plugins/export/1.6/export-1.6.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/export/1.6/export-1.6.pom

      -- artifact org.grails.plugins#export;1.6!export.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/export/1.6/export-1.6.zip

        module not found: org.grails.plugins#cxf;1.1.1

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      F:\Projects\sms-sender/lib/cxf-1.1.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/cxf-1.1.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/cxf-1.1.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/cxf-1.1.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/cxf-1.1.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/cxf-1.1.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/cxf/ivy-1.1.1.xml

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/cxf/jars/cxf-1.1.1.zip

      C:\grails-2.1.1/lib/org.grails.plugins/cxf/bundles/cxf-1.1.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/cxf-1.1.1.xml

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\grails-2.1.1\src\libs/cxf-1.1.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/cxf-1.1.1.xml

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\grails-2.1.1\dist/cxf-1.1.1.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/cxf-1.1.1.xml

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/cxf-1.1.1.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\grails-2.1.1/plugins/cxf-1.1.1.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-cxf/tags/RELEASE_1.1.1/cxf-1.1.1.pom

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      http://grails.org/plugins/grails-cxf/tags/RELEASE_1.1.1/grails-cxf-1.1.1.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.pom

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.pom

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      C:\Users\Sikander/.m2/repository/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.pom

      -- artifact org.grails.plugins#cxf;1.1.1!cxf.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/cxf/1.1.1/cxf-1.1.1.zip

        module not found: org.grails.plugins#audit-logging;1.0.1

    ==== grailsPlugins: tried

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

      F:\Projects\sms-sender/lib/audit-logging-1.0.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\hibernate-2.1.1/lib/audit-logging-1.0.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\jquery-1.8.0/lib/audit-logging-1.0.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\resources-1.1.6/lib/audit-logging-1.0.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\tomcat-2.1.1/lib/audit-logging-1.0.1.zip

      C:\Users\Sikander\.grails\2.1.1\projects\SMSServer\plugins\webxml-1.4.1/lib/audit-logging-1.0.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/audit-logging/ivy-1.0.1.xml

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

      C:\grails-2.1.1/lib/org.grails.plugins/audit-logging/jars/audit-logging-1.0.1.zip

      C:\grails-2.1.1/lib/org.grails.plugins/audit-logging/bundles/audit-logging-1.0.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/audit-logging-1.0.1.xml

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

      C:\grails-2.1.1\src\libs/audit-logging-1.0.1.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/audit-logging-1.0.1.xml

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

      C:\grails-2.1.1\dist/audit-logging-1.0.1.zip

    ==== grailsHome: tried

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/audit-logging-1.0.1.xml

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

      C:\Users\Sikander\.grails\2.1.1\cached-installed-plugins/audit-logging-1.0.1.zip

    ==== grailsHome: tried

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

      C:\grails-2.1.1/plugins/audit-logging-1.0.1.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-audit-logging/tags/RELEASE_1.0.1/audit-logging-1.0.1.pom

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

      http://grails.org/plugins/grails-audit-logging/tags/RELEASE_1.0.1/grails-audit-logging-1.0.1.zip

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

      http://repo.grails.org/grails/core/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.pom

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

      http://repo.grails.org/grails/core/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.zip

    ==== localMavenResolver: tried

      C:\Users\Sikander/.m2/repository/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.pom

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

      C:\Users\Sikander/.m2/repository/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.pom

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

      http://repo1.maven.org/maven2/org/grails/plugins/audit-logging/1.0.1/audit-logging-1.0.1.zip

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

        ::          UNRESOLVED DEPENDENCIES         ::

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

        :: org.grails.plugins#shiro;1.1.4: not found

        :: org.grails.plugins#cookie;0.51: not found

        :: org.grails.plugins#executor;0.3: not found

        :: org.grails.plugins#export;1.6: not found

        :: org.grails.plugins#cxf;1.1.1: not found

        :: org.grails.plugins#audit-logging;1.0.1: not found

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


| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:shiro:1.1.4
- org.grails.plugins:cookie:0.51
- org.grails.plugins:executor:0.3
- org.grails.plugins:export:1.6
- org.grails.plugins:cxf:1.1.1
- org.grails.plugins:audit-logging:1.0.1

我的 buildConfig.groovy 看起来像这样,

grails.servlet.version = "2.5"
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.war"

grails.project.dependency.resolution = 
    inherits("global") 
    
    log "warn"
    checksums true

    repositories 
        inherits true

        grailsPlugins()
        grailsHome()
        grailsCentral()
        mavenLocal()
        mavenCentral()
    
    dependencies 
        runtime 'net.sourceforge.jtds:jtds:1.2.6'

    

    plugins 

        runtime ":hibernate:$grailsVersion"
        runtime ":jquery:1.8.0"
        runtime ":resources:1.1.6"
        runtime ":twitter-bootstrap:3.0.3"
        build   ":tomcat:$grailsVersion"
        compile ":shiro:1.1.4"
        compile ':cookie:0.51'
        runtime ":database-migration:1.1"
        compile ':cache:1.0.0'
        compile ":executor:0.3"
        compile ":export:1.6"
        compile ":cxf:1.1.1"
       //compile ":quartz:1.0.1"
        compile ":audit-logging:1.0.1"

    

当我注释掉这六个失败的插件时,设置同步工作但取消注释时失败。

任何帮助将不胜感激。我也尝试过清理应用程序,并且我的互联网连接工作正常。

【问题讨论】:

Grails unable to install plugin 的可能重复项 【参考方案1】:
repositories 

    inherits true
    grailsPlugins()
    grailsHome()
    grailsCentral()
    mavenLocal()
    mavenCentral()
    mavenRepo "http://repo.grails.org/grails/plugins/"

【讨论】:

【参考方案2】:

尝试刷新你的依赖:

    运行“grails clean” 运行“grails refresh-dependencies”

【讨论】:

【参考方案3】:

在这些存储库中找不到当前的 Maven 文件。 我也遇到过这个问题并通过添加存储库解决了

grailsRepo "https://grails.org/plugins"

repositories 
        inherits true

        grailsPlugins()
        grailsHome()
        grailsCentral()
        mavenLocal()
        mavenCentral()
        grailsRepo "https://grails.org/plugins" 
    

【讨论】:

如果这不起作用试试这个。 mavenRepo "repo.grails.org/grails/repo" 我尝试了@JoshMetcalfe 提出的建议,在 URL 中添加协议后,它就像一个魅力:mavenRepo "repo.grails.org/grails/repo"。 截至 2017 年 9 月,此 repo 仍然适用于旧版 Grails 2.3.7 项目及其旧依赖项。:) 非常感谢!

以上是关于在 grails 插件安装期间无法解决依赖关系的主要内容,如果未能解决你的问题,请参考以下文章

由于未解决的依赖关系,grails install plugin blazeds 失败

如何告诉 Grails 使用 Gradle 解决依赖关系

BuildConfig.groovy Grails 2.2.3 中的自定义插件传递依赖解析

Grails 依赖解决问题

Nest 在测试期间无法解析 UserService 的依赖关系

错误无法解决依赖项 grails