I’m stumped by the process of setting up the development environment for a JOSM plugin that uses Maven dependencies (including a considerable number of transitive dependencies).
While the possibility of using Maven to build plugins is occasionally mentioned, the guide on developing plugins only properly documents using Ant. And while I was successfully able to follow that guide to set up the environment to build a simple plugin without dependencies, I didn’t get much further. Using Ivy and a custom ivy_settings.xml file defining an extra resolver (the dependency is hosted on jitpack), I was able to pull in a dependency and run ant dist
, but as the plugin jar doesn’t include the transitive dependencies, I naturally get plenty of NoClassDefFoundError
s at runtime.
(It should be noted that my most recent encounters with Ant (or SVN) were brief and more than a decade ago, so I’m far outside my comfort zone here.)