2012-08-23 33 views
2

移除插件我有grails 1.3.7,我升級到grails 2.1.0,但是當我跑grails run-app我得到了以下錯誤:Grails中

 http://repo.grails.org/grails/core/org/grails/plugins/yui/[revision]/yui-[revision].zip 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     ::   UNRESOLVED DEPENDENCIES   :: 
     :::::::::::::::::::::::::::::::::::::::::::::: 
     :: org.grails.plugins#yui;[2.6.0,): not found 
     :::::::::::::::::::::::::::::::::::::::::::::: 

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

我試圖grails install-plugin yuigrails uninstall-plugin yui,但都沒有奏效。我並不需要yui插件,但任何解決方案都是可以接受的。我如何解決這個問題?

+0

您是否嘗試過在grails clean之後調用grails刷新依賴項?如果一切都失敗了,請殺死.grails目錄,並且應該可以正常工作。 –

+0

@tomas是的。兩者都產生了兩個結果,如在未解決的依賴關係中。 – cybertextron

回答

1

您需要使用'grails dependency-report'顯示依賴關係然後,您可以使用'yui'插件查看任何插件的HTML報告。

1

我遇到了同樣的問題...我只是複製另一個版本,我在 發現我的磁盤插入到我的應用程序的lib文件夾,如下所示:

CP /tmp/yui_2.7.0.zip LIB

CD的lib/

CP yui_2.7.0.zip yui-2.6.0.zip

比我開始Grails的編譯和一切似乎是確定 當我運行三:

Grails的升級 的Grails編譯

,它似乎沒有任何抱怨更多...

therbert @郵箱:〜/ grapp/DHC $ Grails的編譯|解決插件JAR

依賴::問題總結:: ::::錯誤

 Server access Error: Connection refused url=http://localhost:8081/artifactory/plugins-releases-local/org/grails/plugins/yui/%5B2.6.0,)/yui-%5B2.6.0,).pom 
Server access Error: Connection refused url=http://localhost:8081/artifactory/plugins-releases-local/org/grails/plugins/yui/maven-metadata.xml 

    Server access Error: Connection refused url=http://localhost:8081/artifactory/plugins-releases-local/org/grails/plugins/yui/%5B2.6.0,)/yui-%5B2.6.0,).zip 

| Compiling 290 source files Note: Some input files use or override a> deprecated API. Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations. Note:

Recompile with -Xlint:unchecked for details. | Compiling 28 source

files. [email protected]:~/grapp/dhc$ grails upgrade | Environment set to

development.....

>

WARNING: This target will upgrade an older Grails application to 2.1.0. 

    Are you sure you want to continue? 

       [y,n] y | Plugin 'hibernate' with version '2.1.0' is already 

installed | Plugin 'tomcat' with version '2.1.0' is already

installed | Project upgraded [email protected]:~/grapp/dhc$ grails compile

| Compiling 290 source files Note: Some input files use or override a

deprecated API. Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations. Note:

Recompile with -Xlint:unchecked for details. | Compiling 28 source

files.

2

確保你沒有像compile ":yui:2.x.x.x"一行在BuildConfig.groovyplugins.yui 2.x.x.xapplication.properties

The word on the street表示grails install-plugin現在在Grails 2.x之後被棄用,並且修改了BuildConfig.groovyis the way來安裝插件。

0

只是不知道是否有過任何回答這個問題

從看Grails的依賴報告,其使用Grails的UI插件,進口冒泡插件,然後導入YUI的插件。

我試圖排除BuildConfig.groovy中的bubbling和yui插件,但不幸的是,這沒有奏效。 @mootinator - 我檢查了BuildConfig.groovy和我的應用程序屬性,並且這些文件都沒有對yui的引用