Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Panel
  1. # Intellij IDEA 9 with Maven plugins enabled. It is enabled by default.

Image RemovedImage Added

  1. Apache Maven 2.2.1. Download maven from maven.apache.org and follow the installation instruction.

...

  1. When checkout is done, it will ask you to create a new project. Say "yes".
  2. Select "Import project from external model".
  3. Select "Maven" as external model.
  4. "Root directory" is selected by default, Click "Next".
  5. Click Next to import Maven project.
  6. Click Next if you don't want to change Project Name and Location.
  7. Finish importing maven project, IDEA will load the project.
    Image Removed Image Added
Panel

Develop with Maven

...

Create a run configuration by click "Run -> Edit Configuration", click + and pick "Maven", type Name "OpenMRS", select working directory to be the root of webapp module, type goal "jetty:run" and save. Now you select "OpenMRS" and run or debug it.

Image RemovedImage Added

Current configuration of Jetty is that it will reload static resources like jsp, javascript files etc. If there is any java class change, It will require to run maven:compile goal and restart Jetty.

...

  1. Install JRebel plugin for Intellij IDEA and restart.
    Image Removed Image Added
  2. Configure JRebel plugin for Intellij IDEA.
    Image Removed Image Added
    Specify location of JRebel installation
    Image Removed Image Added
    Untick "synthetic fields"
    Image Removed Image Added
    Tick "Skip synthetic methods"
  3. Configure JRebel by running JRebel Configuration Wizard.
    Image Removed Image Added
    Select "Intellij 8x or later", tick "Use maven to build my application", tick "I run the server from my IDE"
    Image Removed Image Added
    Untick "Spring Framework Plugin"
  4. Run or Debug "OpenMRS" with JRebel from "Run -> Run/Debug with JRebel"

...