Index: applications/editors/josm/plugins/build-common.xml
===================================================================
--- applications/editors/josm/plugins/build-common.xml	(revision 34598)
+++ applications/editors/josm/plugins/build-common.xml	(revision 34601)
@@ -11,5 +11,5 @@
 **
 -->
-<project name="plugin_common" basedir="." xmlns:jacoco="antlib:org.jacoco.ant" xmlns:if="ant:if" xmlns:unless="ant:unless">
+<project name="plugin_common" basedir="." xmlns:jacoco="antlib:org.jacoco.ant" xmlns:if="ant:if" xmlns:unless="ant:unless" xmlns:ivy="antlib:org.apache.ivy.ant">
 
     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
@@ -681,3 +681,16 @@
         <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
     </target>
+	<target name="clean_ivy">
+		<delete failonerror="false">
+			<fileset dir="${plugin.lib.dir}">
+				<include name="**/*.jar"/>
+				<exclude name="**/*-custom.jar" />
+			</fileset>
+		</delete>
+	</target>
+	<target name="fetch_dependencies" depends="clean_ivy, init-ivy">
+		<echo>fetching dependencies with ivy</echo>
+		<ivy:settings file="ivy_settings.xml" />
+		<ivy:retrieve pattern="${plugin.lib.dir}/[artifact]-[revision](-[classifier]).[ext]" conf="default" />
+	</target>
 </project>
