If you want to use the plugin the best way to start is to download the JOSM, navigate to preferences window → plugins and install the PicLayer.
git clone [email protected]:JOSM/PicLayer.git
cd PicLayer
For developing two IDEs are recommended: IntelliJ IDEA or Eclipse
Setup with IntelliJ IDEA:
First of all make sure the Java SE Development Kit 8 is installed on your local machine
- Download IntelliJ IDEA
- Open IntelliJ and import the indoorhelper plugin: File → Open →
path/to/PicLayer_folder
- You may need to set the current SDK: File → Project Strucuture → Project → Project SDK
- You may need to set
PicLayer/src
as source folder andPicLayer/test
as test folder or include some dependencies paths. This settings can be found under File → Project Strucuture → Modules (see also jetbrains#adding_content_root) - After editing the src or test folder (in step 4.) you may need to add the dependencies to this modules again. In Project Structure... → Modules ...select the module and select tab Dependencies → + → Library ...add missing libraries
- Build the plugin using gradle (thanks to floschers gradle-josm-plugin!): Open the gradle toolbar under View → Tool Windows → gradle. Now you see already defined configurations. Use Tasks → build → build to build the plugin. Use Tasks → josm → runJosm to run the plugin with a clean JOSM instance. For more information see gradle-josm-plugin README.md
Troubleshooting IntelliJ IDEA
- Check if correct SDK is set (see above 3.)
- Check if folder
src
is set to src directory and if foldertest
is set to test directory (see above 4.) - Check if all dependencies are added properly (see above 5.)
Setup with Eclipse:
First of all make sure the Java SE Development Kit 8 is installed on your local machine
This tutorials use Ant to build the plugin. If you want to use gradle to build the plugin you will need to use a plugin.
Additional
- For more information see JOSM DevelopersGuide/DevelopingPlugins
- Videos to setup the IDE see JOSM DevelopersGuide#IDEs