2012-03-25 26 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添加。