$ cd ~/src
$ git clone git://github.com/openstreetmap/osmosis.git
$ cd osmosis
$ ./gradlew assemble
and seems osmosis has been properly installed with version Osmosis Version 0.45-41-gf840f6f-SNAPSHOT
And then downloaded the mapsforge-map-writer-0.6.1.jar plugin and moved it to ~/.openstreetmap/osmosis/plugins/
and then i ran the conversion
$ ./bin/osmosis/package/bin/osmosis --rb file=Downloads/nepal-latest.osm.pbf --mapfile-writer file=tests/nepal.map
everything seems to be going fine, until this error showed up.
SEVERE: Thread for task 1-rb failed
java.lang.AbstractMethodError: org.mapsforge.map.writer.osmosis.MapFileWriterTask.close()V
at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:50)
at java.lang.Thread.run(Thread.java:745)
Jul 14, 2016 9:48:12 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Am I doing this right or am i missing something. For past few days i have been stuck at this point.
Can someone please put some light to this issue.
Also in some posts I saw that they were suggesting to use osmosis version 0.40 with mapwriter 0.3.0( checked the post date and were years old)
which made me think if this is due to the compatibilityissue of the osmosis version and the mapwriter.