我在 Eclipse (GGTS) 中导入了一个基于 Grails 2.1.1 的项目,需要将其更新到 2.4.4 版本。我正在使用带有 32 位 Eclipse 版本(Kepler)的 Windows 7。
检查依赖项时,我收到以下错误:
Starting process on CARMBEL11628/10.113.134.246
Loading Grails 2.4.4
|Configuring classpath
|Downloading: D:\Programme\grails-2.4.4\plugins\tomcat-7.0.55.pom
|Downloading: D:\Programme\grails-2.4.4\plugins\tomcat-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")。此外,我删除了常春藤缓存。
谢谢,
最好的