Bitbucket maven plugin overwrites meta-inf/services files when creating the plugin fat jar

XMLWordPrintable

    • 1

      Running atlas-mvn install, during phase "default-copy-bundled-dependencies", it seems that maven assembly plugin is being used to create an uber/fat jar in a very simple way: merging all dependencies jar contents into a new jar.

      This is known to be very problematic, and in our case causes meta-inf/services files to be incorrect (one dependency jar file overwrites the other) and some classes are not found at runtime.

       

      See https://forgetfulprogrammer.wordpress.com/tag/meta-infservices/

      It would be better to avoid using fat jars at all (just load a zip of jars for example), but if that's not possible, at least meta-inf/services file should be merged instead of overwritten.

       

      Thank you!

            Assignee:
            Unassigned
            Reporter:
            Eduardo Ramos Ibáñez
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: