Tro*_*ron 1 grails tomcat ggts
我已经在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
Run Code Online (Sandbox Code Playgroud)
....
==== 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
::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)
任何想法如何解决错误信息?我找到了几个关于如何更改BuildConfig.groovy(build':tomcat:7.0.55'而不是build":tomcat:$ grailsVersion")的建议.而且,我删除了常春藤缓存.
谢谢,
最好
小智 7
你没有说你是否支持公司代理 - 如果你那么这可能对你有帮助:http: //grails.org/wiki/2.4.4%20Release%20Notes说(接近结束)Grails 2.4.4默认https for grailsCentral()和mavenCentral().
maven 3.0.4中似乎有一个未解决的与代理相关的错误https://jira.grails.org/browse/GRAILS-11841所以我只是想知道我的公司代理是否阻止了https ...
我在我的BuilConfig.groovy中做了这些更改
grails.project.dependency.resolver = "maven"
Run Code Online (Sandbox Code Playgroud)
在存储库中:
//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"
Run Code Online (Sandbox Code Playgroud)
这解决了我的问题.
| 归档时间: |
|
| 查看次数: |
2754 次 |
| 最近记录: |