Osmosis not working with mapfilewriter plugin

After much trial and error, I finally made it work by downloading Osmosis version 0.40.1 here.

In addition, I've added 4 jar files in the /lib/default folder:

  1. mapsforge-map-writer-0.3.0-jar-with-dependencies.jar
  2. mapsforge-map-0.3.0-jar-with-dependencies.jar
  3. trove-3.0.3.zip
  4. jts-1.8.jar

After which, i created a new conf file named "osmosis-plugins.conf" and added a line " org.mapsforge.map.writer.osmosis.MapFileWriterPluginLoader" in it.

After doing these steps, Osmosis finally works (though I'm not sure if this is the most correct way of doing it).

However, I still don't really understand why the latest version of Osmosis does not work.

Hope this can help those who faced a similar problem as me!