Running the add_maven_depmap script with N additional mappings specified (using -a) results in the mapping from the pom file being repeated N+1 times in the fragment file. The gid/aid/version of the additional mappings are never set in the loop that prints out the content of the Fragment class. I guess one way around this could be to just set the contents of the fragment each time to a different gid/aid/version. I've attached a patch that seems to get things working. Feel free to change as needed.
Created attachment 778351 [details] Patch
Thank you for the report and patch. It appears to fix a known bug, I'll look into it.
Fixed upstream in 2.0.1: https://github.com/mizdebsk/javapackages/commit/e5095ae
Fixed in javapackages-tools-2.0.1-1
I believe that this bug is fixed in javapackages-tools-2.0.1-1, which is available in Fedora Rawhide, so I am closing this bug now. The build containing the fix can be found at Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=438103