Openfire和Spark本地開發環境搭建記要

來源:互聯網
上載者:User

1. Openfire

參考:openfire搭建   openfire外掛程式開發環境搭建

1) 從官網下載源碼;(openfire_src_x.zip 或 svn:http://svn.igniterealtime.org/svn/repos/openfire/trunk)

2) 在 Eclipse 中建立 openfire 項目,JDK1.6,項目屬性要點:

a) Java Build Path -> Source :

    openfire/src/conf, openfire/src/i18n, openfire/src/java,  (以上output folder均相同)

    openfire/src/test/java, openfire/src/test/resources(以上2個output folder可設為 openfire/test-classes)

    Java Build Path -> Libraries :

     openfire/build/lib/* , openfire/build/lib/dist/*, openfire/build/lib/merge/*,

b) Run/Debug Settings -> Main : Main class: org.jivesoftware.openfire.starter.ServerStarter

    Run/Debug Settings -> Arguments : VM arguments 下輸入:   -DopenfireHome="${workspace_loc:openfire}/target/openfire"

   Run/Debug Settings -> Classpath : User Entries 下增加目錄:

   openfire/src/i18n, openfire/src/resources/jar, openfire/build/lib/dist

 

c) Ant -> Add Buildfiles... 加入 openfire/build/build.xml , 然後展開加入的Openfire XMPP Server,然後雙擊 openfire(openfire是 default 的,所以直接雙擊 Openfire XMPP Server 也行),稍後,控制台顯示 BUILD SUCCESSFUL 表示成功。

d) Run 或 Debug 該 Openfire 項目,控制台順利顯示若干服務啟動資訊,完成。

 

2. Spark

參考:spark部署

1) 從官網下載源碼;(svn:http://svn.igniterealtime.org/svn/repos/spark/trunk)

2) 在 Eclipse 中建立 spark 項目,JDK1.6,項目屬性要點:

a) Java Build Path -> Source : spark/src/java

    Java Build Path -> Libraries :

     spark/build/lib/* , spark/build/lib/dist/*, spark/build/lib/dist/ext/*, spark/build/lib/merge/*,

     spark/plugins/jingle/build/lib/dist/*, spark/plugins/spelling/build/lib/*, spark/src/commerial

b) Run/Debug Settings -> Main : Main class: org.jivesoftware.launcher.Startup , 勾選 Stop in main

    Run/Debug Settings -> Classpath : User Entries 下增加目錄: spark/src/resources

c) Ant -> Add Buildfiles... 加入 spark/build/build.xml , 然後展開加入的Spark,然後雙擊 release (release 是 default 的,所以直接雙擊 Spark 也行),稍後,控制台顯示 BUILD SUCCESSFUL 表示成功。

d) Run 或 Debug 該 Spark 項目,順利看到 Spark 的登入介面,完成。

轉自:http://coffeelover.iteye.com/blog/1533174

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.