users@jersey.java.net

[Jersey] Re: metainf-services duplicate classes

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 23 Sep 2014 21:31:28 +0200

Hi Eugen,

Do you have example of which classes are duplicate? Can you verify the classes are actually duplicate in the jar (just to make sure the problem is not in your maven config)?

Thanks,
Marek

On 22 Sep 2014, at 15:27, Eugen Cepoi <cepoi.eugen_at_gmail.com> wrote:

> Hi,
>
> When using maven shade plugin with metainf-services there are warnings about duplicate classes with jersey-common.
> I am wondering why those classes have been copied? Are they exactly the same?
>
> Also, is metainf-services just a way to support backwards compatibility with libs that relied on the service loader mechanism but is not anymore the preferred way to provide implementations? In that case what is the preferred way to provide "out of the box integration" with jersey now (similar to what is being done with moxy)?
>
> Thanks,
>
> Eugen