powered by Jive Software

Can I develop openfire using IDE Tool IntelliJ IDEA?


#1

Did anyone use IntelliJ IDEA as openfire dev IDE? Could you pls give me a hand, how to run it in IDEA?

Thanks a lot.


#2

Yes, I use IntelliJ.

File -> New -> Project from existing sources.

After import you have to set the classpath correctly. Project Structure -> Modules -> Sources Tab:

Source Folders:

src/java

Test Source Folders:

src/test/java

Resource Folders:

src/resources/jar

src/i18n

build/installer/images (if you run the launcher)

Test Resource Folders:

src/test/resources


#3

Hey, I am new on this could you give more details please? i have already downloaded the openfire src from github. then i import it into my project and i am stuck over there, whats next? could you help me out please


#4

could you tell me how you solved your problem or if you could make a quick guide would be great


#5

I know I’m bit late, but last month I wrote a blog about it. https://blog.viyet.io/2017/06/22/working-with-openfire-source-in-intellij-idea/


#6

Hi all,

I’m just posting this in case someone is still strugling with this problem today, I tried the guide posted above but it seems obsolete now, what worked for me is to import Openfire as a maven project, and then follow the instructions in the OF Github page (https://github.com/igniterealtime/Openfire):

To build the XMPP server you run

mvn verify -pl distribution -am 

right now OF can’t be run in a IDE but you can debug it if you run OF with this parameter:

.\distribution\target\distribution-base\bin\openfire.bat -debug

And then from Intellij you need to attach it as a remote debuger: https://www.jetbrains.com/help/idea/attaching-to-local-process.html

Hope this helps