Openfire4.0.2源碼部署到Eclipse

來源:互聯網
上載者:User

1.下載:地址

2.解壓到當前檔案夾openfire_src,進入openfire_src>build>eclipse目錄下,把裡面settings、classpath、project三個檔案拷貝到openfire_src目錄,並用windows命令列重新命名它們:

rename settings .settings、rename classpath .classpath、rename project .project。


3.匯入工程到eclipse中,發現有些錯誤,一些jar包missing了。


不用擔心,直接把報錯的jar包remove掉,然後把build>lib下的所有jar包括檔案夾裡面的jar都導進來。

這樣,整個工程就不會報錯了。如果Run As運行起工程後,出現紅色警告提示,則刪除衝突的jar包即可。

4.在Build Path配置中把  /openfire_src/src/i18n 、/openfire_src/src/resources/jar 、/openfire_src/build/lib/dist 檔案夾添加到 Source 中,如圖:


餘下來,按下面的圖完成操作即可:




-DopenfireHome="${workspace_loc:openfire_src}/target/openfire"

注意:項目路徑 ${workspace_loc:openfire_src}


然後,把整個工程用ant編譯一遍:


之後,就可以Run工程了。

=============================================================================================

如果想單獨編譯某一個外掛程式的話:


${workplace_loc:/openfire_src/build/build.xml}

-Dplugin=myPlugin


還可以用另一種方法去單獨編譯外掛程式:



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.