IDEA Plugin User Manual

IntelliJ IDEA is a code-centric IDE focused on developer productivity. The editor deeply understands your code and knows its way around the codebase, makes great suggestions right when you need them, and is always ready to help you shape your code.

IntelliJ IDEA Ultimate is the full-featured commercial IDE - with a complete set of tools and integrations with the most important modern technologies and frameworks needed for effective Web and Java EE development.

IntelliJ IDEA has a robust plugin ecosystem with lots of available plugins including Jelastic plugin. Jelastic plugin for IntelliJ IDEA is supported in 11 and 12 versions.

You can also see our video tutorial.

Plugin Installation

For plugin work it is required JavaEE plugin for IDEA which is included to IntelliJ IDEA Ultimate version.

To install the plugin go to your IDEA. Navigate to Settings > Plugins.
Click Browse repositories and in the opened window choose Jelastic plugin.
Download and Install it and after that restart IDEA.

Entering Jelastic system in IDEA

To work with Jelastic system through IDEA navigate to Settings > Jelastic.
In the opened Jelastic Settings tab fill in your account credentials: enter your login, password and choose Jelastic provider from the list. Submit your choice.

Deploying application to the cloud

You can see the button with Jelastic logo in the main IDEA toolbar or in popup menu for Projects tool window. If you have your java web project and want to deploy it just click this button.
In the opened window choose the appropriate artifact (.war archive), state the Context and choose the environment from the list. Confirm your choice.
The deployed project is going to be displayed in Jelastic Tool Window. When you press Deploy button Jelastic Plugin will perform build operation of selected artifact and deploy it to Jelastic.

Working with existing environments and viewing logs

Jelastic Tool Window in IDEA displays your current environments. Expand the list of your environment to see the added nodes and deployed applications.
Using context menu you can manage your environment (Stop/Start, Restart or Refresh) and deployed projects (Destroy, Open in browser or Refresh).

To get the logs of the containers click on the node and choose Get logs menu item. Choose the file you are interested in and click View log (or just double-click on item).

Creating web project in IDEA and artifacts

You can create your own project in IDEA and deploy it straightly to Jelastic environment.
  1. A project should be created as Java Module. So while creating your new project fill in all required fields and select Java Module type.

  2. As the next step you need to select the desired technologies. Choose Web Application as your project should support this framework.

  3. When the project is created, the default artifact will be generated. It is an exploded war package which includes executable files of web project and also static pages.

  4. To view the existing artifacts for the project navigate to File > Project structure > Artifacts. Choose an artifact from the list to see its structure and some more detailed information.

  5. Build on make option allows to generate the chosen artifact each time after building the project.

  6. For deploying to the server a new war archive artifact should be created and Build on make option ticked in it.

  7. When the project is configured, the code is written and everything is ready for deploying the only thing left is to click Make project. After that the artifacts are going to be built and fully ready for deploy.

  8. Then deploy the project you've just created as it's described earlier.

  9. To check if your application is working choose Open in browser menu item for the appropriate context.

  10. The application is going to be opened in your browser.

  11. That's all! Enjoy using Jelastic through IDEA!

What's next?