= Compiling using ​IntelliJ IDEA = [[PageOutline(2-4,Table of Contents)]] This describes how to develop and [wiki:DevelopersGuide/Compiling compile] JOSM using [https://www.jetbrains.com/idea/ IntelliJ IDEA]. == Requirements == - JOSM's [[Source code]] - https://www.jetbrains.com/idea/ - https://plugins.jetbrains.com/plugin/3612-ivyidea == Guide == - Add project from existing source - Project Settings / Project: [[BR]][[Image(79651115-9491d080-81b1-11ea-9a48-99de65830f53.png, 400)]] - Project Settings / Modules: [[BR]][[Image(79651289-a1aebf80-81b1-11ea-99ba-36bce549824a.png, 400)]] - Project Settings / Modules: add+configure IvyIDEA [[BR]][[Image(79651643-bc813400-81b1-11ea-9f8e-c2eeb68b160c.png, 400)]] [[Image(79651825-ca36b980-81b1-11ea-9a8d-77f98fcdce8f.png, 400)]] - Tools / Ivy / Resolve for All Modules: [[BR]][[Image(79653664-534df080-81b2-11ea-84bf-0bf5dbc54319.png, 400)]] - Configure Ant: [[BR]][[Image(79652490-fb16ee80-81b1-11ea-844a-97628baa5075.png, 400)]] - Run the following Ant tasks: [[BR]][[Image(79653168-2f8aaa80-81b2-11ea-9aee-26bfdc6fbd02.png, 400)]] - Run `org.openstreetmap.josm.gui.MainApplication`: [[BR]][[Image(79653367-3d403000-81b2-11ea-968a-5760289826c8.png, 400)]] = Additional settings = This section describes helpful additional settings for IntelliJ IDEA. == Link ticket references in commit messages == Make ticket references in the code of the form `ticket 1234` or `#1234` clickable as a link to the Trac ticket. 1. Open the `Issue Navigation` settings page. [[BR]] [[Image(ticket-integration (1).png, 400)]] 2. Add a new `Issue Navigation` item, with: - `Issue ID`: `(ticket\s*|#)(\d+)` - `Issue link`: `https://josm.openstreetmap.de/ticket/$2` [[BR]] [[Image(ticket-integration (2).png, 400)]] == Search open issues == [[Image(intellij-task-search.png, 400)]] → Tools → Tasks & Contexts → Open Task