1. openfire
Reference: openfire build openfire plug-in Development Environment
1) download the source code from the official website (openfire_src_x.zip or SVN: http://svn.igniterealtime.org/svn/repos/openfire/trunk)
2) create an openfire project in eclipse, jdk1.6, project attribute points:
A)Java build path-> Source:
Openfire/src/Conf, openfire/src/i18n, openfire/src/Java, (the Output Folder above is the same)
Openfire/src/test/Java, openfire/src/test/resources (the above two Output Folder can be set to 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 input:-dopenfirehome = "$ {workspace_loc: openfire}/target/openfire"
Run/debug settings-> classpath: Add a directory under user entries:
Openfire/src/i18n, openfire/src/resources/jar, openfire/build/lib/Dist
C) Ant-> Add buildfiles... add openfire/build. XML, expand the added openfire XMPP server, and double-click openfire (openfire is default, so double-click openfire XMPP server). Later, the console displays build successful, indicating that the operation is successful.
D) run or debug the openfire project. The console displays the startup information of several services successfully.
2. Spark
Reference: spark deployment
(SVN: http://svn.igniterealtime.org/svn/repos/spark/trunk)
2) create a spark project in eclipse, jdk1.6, and key points of project properties:
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/ial
B)Run/debug settings-> main: Main class: org. jivesoftware. launcher. startup, check stop in main
Run/debug settings-> classpath: Add the directory spark/src/resources under user entries
C) Ant-> Add buildfiles... add spark/build. XML, expand the added spark, and double-click release (release is default, so double-click spark). Later, the console displays build successful, indicating that the operation is successful.
D) run or debug the Spark project. The spark logon interface is displayed successfully.
From: http://coffeelover.iteye.com/blog/1533174