= Compiling using ​IntelliJ IDEA = This describes how to develop and [wiki:DevelopersGuide/Compiling compile] JOSM using [https://www.jetbrains.com/idea/ IntelliJ IDEA] 1. Getting the source Source → [[Source code#Getthesource]] 1. Run ant in the source directory to obtain a `josm-custom.jar` → [[DevelopersGuide/Compiling#CompilingusingAnt]] 1. In IntelliJ: File → New → Project from Existing Sources 1. Navigate to the JOSM source code [[BR]] [[Image(intellij-from-sources-01.png)]] 1. [[Image(intellij-from-sources-02.png)]] 1. [[Image(intellij-from-sources-03.png)]] 1. [[Image(intellij-from-sources-04.png)]] 1. [[Image(intellij-from-sources-05.png)]] 1. File → Project Structure * Modules → Sources: Exclude the directory `src/org/apache` [[BR]] [[Image(intellij-exclude-apache.png)]] * Modules → Dependencies: Make sure that `josm-custom` (i.e., the file generated by Ant is listed) * Modules → Dependencies: Add Groovy (you might need to configure that at "Global Libraries") [[BR]] [[Image(intellij-add-groovy.png)]] 1. Run → Edit Configuration * Add an "Application" configuration [[BR]] [[Image(intellij-run-configuration.png)]] Whenever presets, images, styles, or parser definitions change, re-run Ant in order to have those modifications included in `josm-custom.jar`. This is a bit hackish, but works nicely. ☻