wiki:DevelopersGuide/CompilingUsingIntelliJ

Version 20 (modified by gaben, 7 days ago) (diff)

the existing sources option is now hidden by default and opening the project may stall

Compiling using ​IntelliJ IDEA

This describes how to develop and compile JOSM using IntelliJ IDEA.

Requirements

Guide

  • Add project from existing source
    • If you couldn't find the option, press Ctrl+Shift+A and type in the search box project from existing sources. See IntelliJ documentation for more info.
  • Project Settings / Project:
  • Project Settings / Modules:
  • Project Settings / Modules: add+configure IvyIDEA
  • Tools / Ivy / Resolve for All Modules:
  • Configure Ant:
  • Run the following Ant tasks:
  • Run org.openstreetmap.josm.gui.MainApplication:

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.
  2. Add a new Issue Navigation item, with:
    • Issue ID: (ticket\s*|#)(\d+)
    • Issue link: https://josm.openstreetmap.de/ticket/$2

Search open issues

→ Tools → Tasks & Contexts → Open Task

Attachments (44)

Download all attachments as: .zip