2012-03-25 41 views
2

有没有人得到它建立使用maven弹簧支撑Flex应用程序的工作示例?大厦春例如针对Flex与Maven

我检查了在Java/Flex的例子在:

svn co http://svn.springbyexample.org/flex/simple-flex-webapp/tags/1.1/ simple-flex-webapp 

而且得到了以下错误:

[ERROR] Failed to execute goal on project simple-flex-webapp: Could not resolve dependencies for project org.springbyexample.web:simple-flex-webapp:war:1.1: Failure to find com.adobe.flex.framework:flex-framework:pom:3.2.0.3958 in http://www.springbyexample.org/maven/repo was cached in the local repository, resolution will not be reattempted until the update interval of springbyexample.org has elapsed or updates are forced 

我试图调整没有成功的柔性框架依赖版本。

回答

0

下列Nexus搜索证明存在依赖:

https://repository.sonatype.org/index.html#nexus-search;gav~com.adobe.flex.framework~flex-framework~3.2.0.3958~~

您已经添加了Flex库释放你的POM的释放部分?

<repositories> 
    <repository> 
     <id>flexmojos</id> 
     <url>http://repository.sonatype.org/content/groups/flexgroup/</url> 
    </repository> 
    </repositories> 

下面的教程介绍了如何在Maven的实现柔性:

http://ria.dzone.com/articles/flex-and-maven

+1

非常感谢,现在的错误是下面的文物无法解析:com.adobe.flex:编译器:POM:3.2.0.3958,org.graniteds:花岗岩发电机中:jar:1.1.0,com.adobe.flex .compiler:ASDoc的:邮编:模板:3.2.0.3958:未能找到com.adobe.flex:编译器:POM:3.2.0.3958在http://repo1.maven.org/maven2在本地仓库被缓存,分辨率不重新尝试,直到中央的更新间隔已过或更新如果您正在使用Maven 3,你可以通过使用“-U”选项运行Maven的强制更新强制 – Reimeus 2012-03-25 16:36:50

+0

。另一种选择是删除本地缓存($ HOME/.m2/repository)并强制所有内容全新下载。 – 2012-03-25 17:11:38

+0

可悲的是没有区别:( – Reimeus 2012-03-25 20:11:34

0

终于决定创建一个Flex模块用一个简单的Java数据服务模块的新项目。要开始我使用

mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/public -DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-modular-webapp -DarchetypeVersion=${flexmojos.version} 

创建该模块。此外,我必须确保FlashPlayer.exe是为Maven构建的电流路径上(!)

这是直截了当然后基于与Spring支持其他模块的Java添加。