java - Spring-Flex 1.5 示例可以工作吗?

标签 java apache-flex spring maven-2 blazeds

有问题的示例和文档可以在这里找到:http://static.springsource.org/spring-flex/docs/1.5.0.M1/

引用文档 ( here ) 告诉我们下载示例应用程序:

Included in the project distribution is a collection of samples called the Spring BlazeDS Integration Test Drive. This samples project is set up to be built with Maven and then imported into Eclipse for running the application via WTP.

相关样本必须是 spring-flex-testdrive-spring3.zip文档中链接到 spring-flex-testdrive-spring3.zip基于这是版本 1.5.0.M1(文档和示例)的概念。

按照描述使用正确的环境变量配置 Maven 后:

MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"

然后,我执行(每条指令)安装命令:mvn clean install 从提取的示例目录(在我的例子中为 C:\spring-flex-testdrive ) ,我收到以下错误:

C:\spring-flex-testdrive>mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.springframework.flex.samples:spring-flex-testdrive:1.5.0.M1 (C:\spring-flex-testdrive\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.flex:spring-flex-parent:pom:1.5.0.M1 in http://maven.springframework.org/external was cached in the local repository, resolution will not be
reattempted until the update interval of spring-external has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\spring-flex-testdrive>

我已经成功地让“Spring BlazeDS”应用程序正常工作(使用 Flex),但现在我需要实现安全性,如果示例能够正确编译和运行,那么它将是一个巨大的帮助。我是 Maven 新手,但任何帮助将不胜感激!

提前感谢 StackOverflow 社区!

最佳答案

Brian,请将以下代码段添加到示例根目录中的 pom.xml(从执行 mvn clean install 的位置)并重新运行 Maven:

    <repository>
        <id>spring-milestone</id>
        <name>Spring Milestone Repository</name>
        <url>http://maven.springframework.org.s3.amazonaws.com/milestone</url>
    </repository>

希望有帮助。

基督教

关于java - Spring-Flex 1.5 示例可以工作吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4935030/

相关文章:

java - 安卓开发 : Run TimerTask in UI Thread

java - JInternalFrame 的内容包装得太紧

java - Java 和 AS 之间的花岗岩桥梁

apache-flex - Flex Flash使用动态创建的URL发送HTTP请求

java - 是否有适用于 Java 的具有部分功能的现代自然语言日期解析器?

java - 如何将 Java (Hash)Map 上传到 Apache ISIS RestFUL 服务

apache-flex - Spark 组件上的 Halo 主题

java - 如何对所有实现 MyInterface 的类应用 ThrowsAdvice

spring - ElasticsearchItemReader 不断读取相同的记录

java - SQLDataException : invalid datetime format from HSQLDB