How to compile plugin

Hello,

I was download source code of openfire 4.2.3 server. How I can compile one plugin? I have Intellij IDEA.
Please answer step by step with dependencies.

Thank you.