2012-02-12 18 views
1

我從什麼似乎是對電梯的Eclipse安裝最新的(按時間順序)的文章http://www.assembla.com/spaces/liftweb/wiki/Using_Eclipse_with_Maven電梯設置在日食 - 我錯過什麼

的說明很認真地按照指示何況

「......許多net.liftweb條目文物的列表...」

但我可能在日食失去了一些東西,因爲這兩個(目錄刷新後)並在c atalog文件https://oss.sonatype.org/content/groups/scala-tools/archetype-catalog.xml似乎沒有Lift Maven Archetypes(搜索「lift」不會顯示結果)

這個修改了嗎?有沒有一個很好的電梯設置的例子eclipse項目? Maven或者不Maven,我只想使用一個IDE(對於這個問題任何IDE),這個IDE有一個Lift開發的工作流程(例如,不需要每次更改都需要構建和部署一個war,允許即時更新,就像一個常規WTP項目)

回答

1

是的,好點,原型列表或者是過時的,或者沒有列出升級項目。

在任何情況下,使用m2eclipse可以訪問Nexus Indexer目錄(不是嗎?),其中列出了liftweb原型。

否則在命令行:

mvn archetype:generate \ 
-DarchetypeGroupId=net.liftweb \ 
-DarchetypeArtifactId=lift-archetype-basic_2.9.1 \ 
-DarchetypeVersion=2.4-M4 \ 
-DarchetypeRepository=http://scala-tools.org/repo-releases \ 
-DremoteRepositories=http://scala-tools.org/repo-releases \ 
-DgroupId=com.your.group \ 
-DartifactId=yourartifact \ 
-Dversion=0.0.1 
2

情侶更新上述回答。 (如!張貼)首先scala-tools.org不再承載內容,它已被移動到http://oss.sonatype.org/content/groups/scala-tools和最新的電梯的版本是2.4-M5,所以使用:

mvn archetype:generate \ 
    -DarchetypeGroupId=net.liftweb \ 
    -DarchetypeArtifactId=lift-archetype-basic_2.9.1 \ 
    -DarchetypeVersion=2.4-M5 \ 
    -DarchetypeRepository=http://oss.sonatype.org/content/groups/scala-tools \ 
    -DremoteRepositories=http://oss.sonatype.org/content/groups/scala-tools \ 
    -DgroupId=com.your.group \ 
    -DartifactId=yourartifact \ 
    -Dversion=0.0.1 
2

我有一個樣本可以導入到eclipse中的項目,以及使用scala IDE和支持工具(JRebel,WTP等)設置eclipse(Indigo)的完整說明。

結果是一個開發環境,爲您提供動態語言體驗(快速編輯/保存/重載),並且不需要命令行交互(您可以使用eclipse的Server視圖在Tomcat6中運行項目以及))。

參見:https://github.com/awkay/lift_squeryl_demo

1

的liftweb文物沒有可能列出,因爲日食採用嵌入式行家,而不是下載並安裝Apache Maven和在喜好用eclipse聯繫起來。

enter image description here