...
Panel |
---|
|
- Apache Maven 2.2.1. Download maven from maven.apache.org and follow the installation instruction.
...
- When checkout is done, it will ask you to create a new project. Say "yes".
- Select "Import project from external model".
- Select "Maven" as external model.
- "Root directory" is selected by default, Click "Next".
- Click Next to import Maven project.
- Click Next if you don't want to change Project Name and Location.
- Finish importing maven project, IDEA will load the project.
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.
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.
...
- Install JRebel plugin for Intellij IDEA and restart.
- Configure JRebel plugin for Intellij IDEA.
Specify location of JRebel installation
Untick "synthetic fields"
Tick "Skip synthetic methods" - Configure JRebel by running JRebel Configuration Wizard.
Select "Intellij 8x or later", tick "Use maven to build my application", tick "I run the server from my IDE"
Untick "Spring Framework Plugin" - Run or Debug "OpenMRS" with JRebel from "Run -> Run/Debug with JRebel"
...