4

我试图通过 BlazeDS 将 Flex 与 Grails 集成,但我坚持第一步,即安装 BlazeDS 插件......每次我尝试安装时都会失败。以下是完整的堆栈跟踪

Resolving plugin JAR dependencies ...
:: problems summary ::
:::: WARNINGS
    module not found: com.adobe.flex#flex-messaging-opt;4.0.0.14931.1

==== grailsHome: tried

  D:\Platforms\Grails\grails-1.3.7\lib/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:\Platforms\Grails\grails-1.3.7\lib/flex-messaging-opt-4.0.0.14931.1.jar

==== grailsHome: tried

  D:\Platforms\Grails\grails-1.3.7\dist/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:\Platforms\Grails\grails-1.3.7\dist/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:\Platforms\Grails\grails-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:\Work\Personal\Grails\todolist/lib/flex-messaging-opt-4.0.0.14931.1.jar

  C:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\blazeds-2.0/lib/flex-messaging-opt-4.0.0.14931.1.jar

  C:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\hibernate-1.3.7/lib/flex-messaging-opt-4.0.0.14931.1.jar

  C:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\spring-security-acl-1.1/lib/flex-messaging-opt-4.0.0.14931.1.jar

  C:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\spring-security-core-1.2.1/lib/flex-messaging-opt-4.0.0.14931.1.jar

  C:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\tomcat-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:\Users\Akeel\.grails\1.3.7\projects\todolist\plugins\spring-security-core-1.2.1
Failed to install plugin [blazeds-2.0]. Plugin has missing JAR dependencies.

如果有人可以帮助我解决此问题,我将不胜感激。谢谢

4

3 回答 3

0

这是Windows的问题。它看起来像一个损坏的常春藤缓存。只需删除 .grails 中的 ivy-cache 文件夹即可。对于 Windows 7,它是:C:\Users[USER NAME].grails\ivy-cache。

当您使用 grails 命令时,它将重新生成。希望能帮助到你。

于 2012-07-18T14:50:15.823 回答
0

我最近在 grails 1.3.7 上遇到了同样的问题。不知何故,这个问题只在 Windows 中重现,但在 Ubuntu 中没有。所以我只是将常春藤缓存从 Ubuntu 复制到 Windows,现在可以了。我不知道我能不能把这个罐子放在互联网上,所以无论如何你都可以从一些 maven 或 ivy 存储库手动下载它们。

于 2011-12-05T17:00:19.257 回答
0

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

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

改编自其他 SO question

于 2012-05-07T17:10:49.203 回答