Openfire4.0.2 source deployment to eclipse

Source: Internet
Author: User

1. Download: Address

2. Extract to the current folder Openfire_src, into the Openfire_src>build>eclipse directory, the inside settings, Classpath, project three files copied to Openfire_ src directory and rename them with the Windows command line:

Rename settings. settings, rename classpath. Classpath, rename Project. Project.


3. Import project into eclipse, found some errors, some jar package missing.


Don't worry, remove the error jar package directly, and then build>lib all the jars underneath the jar including the jar inside the folder.

In this way, the whole project will not be an error. If a red warning appears when run as is running the project, delete the conflicting jar package.

4. In the build path configuration, add the/openfire_src/src/i18n,/openfire_src/src/resources/jar,/openfire_src/build/lib/dist folders to the Source, as shown in figure:


For the rest, follow the diagram below to complete the operation:




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

Note: Project Path ${WORKSPACE_LOC:OPENFIRE_SRC}


Then, compile the entire project with Ant:


After that, you can run the project.

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

If you want to compile a plugin individually:


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

-dplugin=myplugin


You can also use a different method to compile the plugin separately:



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.