Skip to content

IntelliJ IDEA

Oleh Astappiev edited this page Oct 16, 2023 · 1 revision

IntelliJ IDEA

  1. It is one of the most powerful IDE with a lot of benefits over Eclipse
  2. You can obtain a license for free as a student or teacher
    (You need to have @*.uni-hannover.de email address or any other of supported)
  3. Download IntelliJ IDEA Ultimate

Run project

  1. Most configuration already exists in the project directory and IDE will load it automatically.

  2. Open the project using IDE File => Open... and select the project directory

  3. Wait for indexing to finish

  4. Right-click on project root in a tree (Learnweb) and select Maven -> Reimport (Or Import) (you can enable auto-import)

  5. Right-click on package.json file and select Run 'npm install'.

  6. Update "Run configuration" (The configuration already exists, we just need to choose a server)

    • In Run configuration (right top corner), select "Run locally" from drop down list and press the play button. The select "Edit Configuration" dialog should open automatically
    • Find "Application server" selector and click "Configure..." button right to it
    • Add new server by selecting Tomcat server directory (same as above)
    • Check the name, it should be Tomcat 11 (and not Tomcat 11.0.1)
    • Save and configuration
  7. Run the project (if it still says Tomcat is not configured, try to restart IDEA)

Plugins

  • RBESort - allows sorting messages in same way Eclipse Resource Bundle do
  • CheckStyle - static code analysis to check if Java source code complies with coding rules (CheckStyle is used in Gitlab Pipelines and Maven. You can install this plugin for better integration with IDE).
  • SpotBugs - static byte code analysis to look for bugs in Java code (SpotBugs is used in Gitlab Pipelines and Maven. You can install this plugin for better integration with IDE).
Clone this wiki locally