Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

IntelliJ IDEA Setup

Manoj edited this page Nov 1, 2018 · 1 revision

Import project into IntelliJ IDEA : -

  1. Open command prompt / terminal.
  2. Go to folder mifosng-provider.
  3. Fire the command ./gradlew -Penv=dev idea
  4. Once the command is done, IDEA project files will be created in the same folder.
  5. From Explorer/Finder open the file mifosng-provider.ipr

Note: Ensure your project's JVM SDK is 1.7. Note: To enable incremental compile like in Eclipse (File -> Settings -> Compiler(on the left pane) -> Select the "Make Project Automatically option")

Apply Project preferences to IDEA

Go to File -> Settings -> Plugins(on the left pane) -> Install JetBrains Plugin -> Eclipse Code Formatter. See full documentation -> https://github.com/krasa/EclipseCodeFormatter#instructions or download plugin from this page https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter

Go to File -> Settings -> Eclipse Code Formatter -> Select the "Use Eclipse Code Formatter" option and import the "Eclipse Java Formatter Config File" from MifosX Eclipse Preferences (Use ctrl + alt + l to format your code)

Run/Debug Mifos X

Run/Debug as Java application ServerWithMariaDB4jApplication to launch Mifos X with an embedded database (Separate installation of MySQL is not required) OR if you have installed MySQL in the previous step, run/debug ServerApplication as a Java application.

Idea Shortcuts

https://www.catalysts.cc/en/wissenswertes/intellij-idea-and-eclipse-shortcuts/ http://www.jetbrains.com/idea/webhelp/keyboard-shortcuts-you-cannot-miss.html