Re: Maven shade plugin: Duplicate entry in META-INF/service

2019-12-03 Thread Jan Lukavský
Hi Chris, my pom.xml looks like this [1]. The transformer you suggest is in place. I think that it would help to not shade the test jar, but I'm using shaded guava, which is bundled into core dependencies, so that might be a little complicated. Possible, though. This might be (maybe

Re: Maven shade plugin: Duplicate entry in META-INF/service

2019-12-03 Thread Christofer Dutz
Hi Jan, are you using any of the shade transformers? We had similar problems in the PLC4X project, but configuring: Helped quite a bit. Have a look here: https://github.com/apache/plc4x/blob/develop/pom.xml#L1286 Hope this helps. Chris Am 03.12.19,

Re: Maven shade plugin: Duplicate entry in META-INF/service

2019-12-03 Thread Jan Lukavský
Hi Matt, thanks for reaction. Is there a workaround around this? I think that the PR I propose is "safe" and might be considered as a hotfix before a proper solution is found? I don't know how is the release cycle of maven plugins defined, but if there is an upcoming release soon, this might

Re: Maven shade plugin: Duplicate entry in META-INF/service

2019-12-02 Thread Matt Foley
Hi Jan, See also https://github.com/apache/maven-shade-plugin/pull/14 and MSHADE-259 I stalled on it because it appears to be a lot of work to create unit tests for maven plugins — and there weren’t examples to follow in the shade plugin. That said, I’m not sure what I did is the right way to

Maven shade plugin: Duplicate entry in META-INF/service

2019-11-28 Thread Jan Lukavský
Hi Maven :), I encountered an exception in my build and I'm not sure if there is something wrong with how I structure tasks in my pom.xml, or there is a room for improvement of the shade plugin. The symptoms are as follows:  - mvn install works just fine  - mvn deploy fails on 'duplicate