由于无法解决的依赖关系,Grails安装插件blazeds失败



我试图通过BlazeDS集成Flex与Grails,但我被困在第一步,即安装BlazeDS插件…每次我尝试安装它都会失败。下面是完整的stacktrace

Resolving plugin JAR dependencies ...
:: problems summary ::
:::: WARNINGS
    module not found: com.adobe.flex#flex-messaging-opt;4.0.0.14931.1
==== grailsHome: tried
  D:PlatformsGrailsgrails-1.3.7lib/flex-messaging-opt-4.0.0.14931.1.xml
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  D:PlatformsGrailsgrails-1.3.7lib/flex-messaging-opt-4.0.0.14931.1.jar
==== grailsHome: tried
  D:PlatformsGrailsgrails-1.3.7dist/flex-messaging-opt-4.0.0.14931.1.xml
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  D:PlatformsGrailsgrails-1.3.7dist/flex-messaging-opt-4.0.0.14931.1.jar
==== grailsHome: tried
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  D:PlatformsGrailsgrails-1.3.7/plugins/grails-flex-messaging-opt-4.0.0.14931.1.jar
==== grailsCentral: tried
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://svn.codehaus.org/grails-plugins/grails-flex-messaging-opt/tags/RELEASE_4_0_0_14931_1/grails-flex-messaging-opt-4.0.0.14931.1.jar
==== grailsCore: tried
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://svn.codehaus.org/grails/trunk/grails-plugins/grails-flex-messaging-opt/tags/RELEASE_4_0_0_14931_1/grails-flex-messaging-opt-4.0.0.14931.1.jar
==== mavenCentral: tried
  http://repo1.maven.org/maven2/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://repo1.maven.org/maven2/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== ebrRelease: tried
  http://repository.springsource.com/maven/bundles/release/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://repository.springsource.com/maven/bundles/release/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== ebrExternal: tried
  http://repository.springsource.com/maven/bundles/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://repository.springsource.com/maven/bundles/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== http://maven.springframework.org/external: tried
  http://maven.springframework.org/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://maven.springframework.org/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== http://maven.springframework.org/milestone: tried
  http://maven.springframework.org/milestone/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://maven.springframework.org/milestone/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== ebrRelease: tried
  http://repository.springsource.com/maven/bundles/release/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://repository.springsource.com/maven/bundles/release/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== ebrExternal: tried
  http://repository.springsource.com/maven/bundles/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://repository.springsource.com/maven/bundles/external/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== http://maven.sinusgear.com/maven_repo: tried
  http://maven.sinusgear.com/maven_repo/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.pom
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  http://maven.sinusgear.com/maven_repo/com/adobe/flex/flex-messaging-opt/4.0.0.14931.1/flex-messaging-opt-4.0.0.14931.1.jar
==== grailsPlugins: tried
  -- artifact com.adobe.flex#flex-messaging-opt;4.0.0.14931.1!flex-messaging-opt.jar:
  D:WorkPersonalGrailstodolist/lib/flex-messaging-opt-4.0.0.14931.1.jar
  C:UsersAkeel.grails1.3.7projectstodolistpluginsblazeds-2.0/lib/flex-messaging-opt-4.0.0.14931.1.jar
  C:UsersAkeel.grails1.3.7projectstodolistpluginshibernate-1.3.7/lib/flex-messaging-opt-4.0.0.14931.1.jar
  C:UsersAkeel.grails1.3.7projectstodolistpluginsspring-security-acl-1.1/lib/flex-messaging-opt-4.0.0.14931.1.jar
  C:UsersAkeel.grails1.3.7projectstodolistpluginsspring-security-core-1.2.1/lib/flex-messaging-opt-4.0.0.14931.1.jar
  C:UsersAkeel.grails1.3.7projectstodolistpluginstomcat-1.3.7/lib/flex-messaging-opt-4.0.0.14931.1.jar
    ::::::::::::::::::::::::::::::::::::::::::::::
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: com.adobe.flex#flex-messaging-opt;4.0.0.14931.1: not found
    ::::::::::::::::::::::::::::::::::::::::::::::

[delete] Deleting directory C:UsersAkeel.grails1.3.7projectstodolistpluginsspring-security-core-1.2.1
Failed to install plugin [blazeds-2.0]. Plugin has missing JAR dependencies.
如果有人能帮我解决这个问题,我将非常感激。由于

我最近在grails 1.3.7上遇到了同样的问题。不知何故,这个问题只在Windows中出现,而在Ubuntu中没有。所以我只是复制常春藤缓存从Ubuntu到Windows,现在它是好的。我不知道我能不能把这个jar放到网上,所以无论如何你可以从maven或ivy仓库手动下载它们。

将以下行添加到BuildConfig的存储库部分。groovy文件:

mavenRepo "https://src.springsource.org/svn/spring-flex/tags/spring-flex-1.5.0.RELEASE/local-repo/"

改编自另一个SO问题

这是Windows的问题。看起来像是腐烂的常青藤藏匿处。只需删除.grails中的ivy-cache文件夹。对于Windows 7,它是:C:Users[USER NAME].grailsivy-cache.

使用grails命令会重新生成。

最新更新