Grails无法识别任何在线/插件依赖项

时间:2015-03-11 18:10:47

标签: grails dependencies

尝试在新机器上运行我的Grails项目,设置如下:

  • grails 2.3.8
  • java 1.8 - 我曾经在1.6或7中运行这个项目,但我希望,这不是原因
  • Windows XP 32b
  • Idea 12.1.7 Ultimate as IDE

在我看来,grails无法下载任何在线依赖项,例如下面是包含邮件和邮件确认插件解析信息的输出的一部分。但是当我将http文件的zip路径放到浏览器中时,它会下载它,因此与存储库的连接正在机器上运行。

在之前运行项目的计算机上,此配置有效。我可以通过编辑BuildConfig.groovy来添加插件,它已被下载,添加并准备好使用。

以下是BuildConfig.groovy的一些有趣部分(我还没有离开所有deps):

  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/"

        // Due to spring security plugins 2.0
        mavenRepo "http://repo.spring.io/milestone"
    }
 dependencies {

        // This dependency is added due to usage of grails mail plugin:
        compile "javax.mail:mail:1.5.0-b01"

    }
 plugins {
        runtime ":hibernate:3.6.10.13"
        runtime ":jquery:1.8.3"
        runtime ":resources:1.2.7"

        // 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 ":tomcat:7.0.52.1"

        runtime ":database-migration:1.4.0"

        // Mail service & mail confirmation providers:
        compile ":mail:1.0.7"
        compile ":email-confirmation:2.0.8"

        compile ":scaffolding:2.0.3"
        compile ":cache:1.0.1"
        compile ":spring-security-core:2.0-RC2"
        compile ":spring-security-acl:2.0-RC1"
        compile ":lang-selector:0.3"
        compile ":i18n-templates:1.1.0.1"


    }

任何想法,我是否必须手动安装常春藤,maven或其他东西?或者我应该在哪里获取有关确切失败的信息?

这是新系统,所以没有比我上面描述的工具多得多。

提前致谢!

输出:

|Configuring classpath
:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#mail;1.0.7

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Documents and Settings\admin\IdeaProjects\CarEcho\lib\mail-1.0.7.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\mail\ivy-1.0.7.xml

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\mail\jars\mail-1.0.7.zip

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\mail\bundles\mail-1.0.7.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\dist\mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Program Files\grails-2.3.8\dist\mail-1.0.7.zip

    ==== grailsHome: tried

      C:\Documents and Settings\admin\.grails\2.3.8\cached-installed-plugins\mail-1.0.7.xml

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Documents and Settings\admin\.grails\2.3.8\cached-installed-plugins\mail-1.0.7.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\plugins\mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Program Files\grails-2.3.8\plugins\mail-1.0.7.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-mail/tags/RELEASE_1.0.7/mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      http://grails.org/plugins/grails-mail/tags/RELEASE_1.0.7/grails-mail-1.0.7.zip

    ==== localMavenResolver: tried

      C:\Documents and Settings\admin\.m2\repository\org/grails/plugins\mail\1.0.7\mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      C:\Documents and Settings\admin\.m2\repository\org/grails/plugins\mail\1.0.7\mail-1.0.7.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.7/mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.7/mail-1.0.7.zip

    ==== http://repo.spring.io/milestone: tried

      http://repo.spring.io/milestone/org/grails/plugins/mail/1.0.7/mail-1.0.7.pom

      -- artifact org.grails.plugins#mail;1.0.7!mail.zip:

      http://repo.spring.io/milestone/org/grails/plugins/mail/1.0.7/mail-1.0.7.zip

        module not found: org.grails.plugins#email-confirmation;2.0.8

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Documents and Settings\admin\IdeaProjects\CarEcho\lib\email-confirmation-2.0.8.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\email-confirmation\ivy-2.0.8.xml

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\email-confirmation\jars\email-confirmation-2.0.8.zip

      C:\Program Files\grails-2.3.8\lib\org.grails.plugins\email-confirmation\bundles\email-confirmation-2.0.8.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\dist\email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Program Files\grails-2.3.8\dist\email-confirmation-2.0.8.zip

    ==== grailsHome: tried

      C:\Documents and Settings\admin\.grails\2.3.8\cached-installed-plugins\email-confirmation-2.0.8.xml

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Documents and Settings\admin\.grails\2.3.8\cached-installed-plugins\email-confirmation-2.0.8.zip

    ==== grailsHome: tried

      C:\Program Files\grails-2.3.8\plugins\email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Program Files\grails-2.3.8\plugins\email-confirmation-2.0.8.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-email-confirmation/tags/RELEASE_2.0.8/email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      http://grails.org/plugins/grails-email-confirmation/tags/RELEASE_2.0.8/grails-email-confirmation-2.0.8.zip

    ==== localMavenResolver: tried

      C:\Documents and Settings\admin\.m2\repository\org/grails/plugins\email-confirmation\2.0.8\email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      C:\Documents and Settings\admin\.m2\repository\org/grails/plugins\email-confirmation\2.0.8\email-confirmation-2.0.8.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.zip

    ==== http://repo.spring.io/milestone: tried

      http://repo.spring.io/milestone/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.pom

      -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip:

      http://repo.spring.io/milestone/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.zip

1 个答案:

答案 0 :(得分:6)

尝试在BuildConfig.groovy中将其添加到您的存储库。它应该使它工作。

mavenRepo "https://repo.grails.org/grails/plugins"