从Grails 2.1.1更改为Grails 2.4.4时,未解决的依赖关系



我在Eclipse(GGTS)中导入了一个基于Grails 2.1.1的项目,需要将其更新到2.4.4版本。我使用的是带有32位Eclipse版本(开普勒)的Windows7。

在检查依赖关系时,我得到了以下错误:

    Starting process on CARMBEL11628/10.113.134.246
Loading Grails 2.4.4
|Configuring classpath
|Downloading: D:Programmegrails-2.4.4pluginstomcat-7.0.55.pom
|Downloading: D:Programmegrails-2.4.4pluginstomcat-7.0.55.zip
:: problems summary ::
:::: WARNINGS
    Host repo.grails.org not found. url=https://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-sources.jar
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-sources.jar
    Host repo.grails.org not found. url=https://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-src.jar
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-src.jar
    Host repo.grails.org not found. url=https://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-javadoc.jar
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/7.0.55/tomcat-7.0.55-javadoc.jar
    Host repo.grails.org not found. url=https://repo.grails.org/grails/plugins/org/apache/tomcat/embed/tomcat-embed-core/7.0.55/tomcat-embed-core-7.0.55.pom
    Host repo.grails.org not found. url=https://repo.grails.org/grails/plugins/org/apache/tomcat/embed/tomcat-embed-core/7.0.55/tomcat-embed-core-7.0.55.jar
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/7.0.55/tomcat-embed-core-7.0.55.pom
    Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/7.0.55/tomcat-embed-core-7.0.55.jar
        module not found: org.apache.tomcat.embed#tomcat-embed-core;7.0.55
    ==== grailsPlugins: tried

        ==== mavenCentral: tried
      http://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/3.7.2/ecj-3.7.2.pom
      -- artifact org.eclipse.jdt.core.compiler#ecj;3.7.2!ecj.jar:
      http://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/3.7.2/ecj-3.7.2.jar
        ::::::::::::::::::::::::::::::::::::::::::::::
        ::          UNRESOLVED DEPENDENCIES         ::
        ::::::::::::::::::::::::::::::::::::::::::::::
        :: org.apache.tomcat.embed#tomcat-embed-core;7.0.55: not found
        :: org.apache.tomcat#tomcat-catalina-ant;7.0.55: not found
        :: org.apache.tomcat.embed#tomcat-embed-jasper;7.0.55: not found
        :: org.apache.tomcat.embed#tomcat-embed-logging-log4j;7.0.55: not found
        :: org.apache.tomcat.embed#tomcat-embed-websocket;7.0.55: not found
        :: org.eclipse.jdt.core.compiler#ecj;3.7.2: not found
        ::::::::::::::::::::::::::::::::::::::::::::::

有什么想法可以解决错误消息吗?我发现了一些关于如何更改BuildConfig.groovy的建议(构建':tomcat:7.0.55',而不是构建":tomcat:$grailsVersion")。此外,我删除了常春藤缓存。

谢谢,

最佳

您没有说明您是否支持公司代理-如果您支持,这可能会对您有所帮助:http://grails.org/wiki/2.4.4%20Release%20Notes说(近端)Grails 2.4.4默认为grailsCentral()和mavenCentral()的https。

maven 3.0.4中似乎有一个未解决的与代理有关的错误https://jira.grails.org/browse/GRAILS-11841所以我只是想知道我的公司代理是否屏蔽了https。。。

我在BuilConfig.groovy 中进行了这些更改

grails.project.dependency.resolver = "maven"

在存储库中:

//grailsPlugins()   // Only for Ivy
//grailsHome()      // Only for Ivy
//mavenLocal()      // Only for Ivy
//grailsCentral()   // As of Grails 2.4.4 this defaults to https
mavenRepo "http://repo.grails.org/grails/plugins"
//mavenCentral()    // As of Grails 2.4.4 this defaults to https 
mavenRepo "http://repo1.maven.org/maven2"

这为我解决了问题。

您可以设置grails repo。

repositories {
   grailsRepo "http://grails.org/plugins"
} 

有关详细信息,请访问链接。http://grails.1312388.n4.nabble.com/Plugin-publication-migration-HOWTO-td4474812.html

并为maven repo阅读这篇文章。在存储库中心找不到资源(http://repo1.maven.org/maven2)

相关内容

  • 没有找到相关文章

最新更新