Historically, IBM has been a very Eclipse-centric house. We spend a lot of time writing tools that plug into Eclipse to make developing with WebSphere and Liberty easier. Despite this, there are a number of alternative options for writing Java applications and we often get asked if you can use IntelliJ IDEA to develop applications for Liberty. Of course, the answer is yes, the team at JetBrains does a good job at this, with little prompting from us. We even wrote an article about how to write a simple application using IntelliJ IDEA.
With Eclipse this is on by default. With IntelliJ IDEA you have to enable it, but it is really easy:
- From the Run/Debug configuration for Liberty, you just remove the bit that reads Build … artifact by selecting it and clicking the – below, then click + :
- Select Build loose applications:
- Select the modules you want to build and click OK:
Next time you deploy and run the application it’ll run from the workspace.
The team at JetBrains are doing a great job with their Liberty integration, let them know if you have any enhancement or bug requests.