You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Manuel Dahmen <da...@gmail.com> on 2021/10/12 18:16:23 UTC

Re: avoid exception "illegal reflective access"

Le mar. 12 oct. 2021 à 19:47, Manuel Dahmen <da...@gmail.com> a écrit :

> Hello, good evening,
>
> I have 1 Java Maven project.
>
> I don't understand why XStream library is loaded since I don't have this
> in my dependencies.
>
> pom.xml:
> https://github.com/manuelddahmen/empty3/blob/android/pom.xml
>
>
> To publish it I use:
> mvn deploy perform:release
>
> I have a warning:
> illegal reflective access
>
> mentioning com.thoughtworks.xstream.core.util.Fields
>
> This stops the build.
>
> as mentioned in  xstream sources project.
>
> I wonder if for solution I can use:
>
> maven - - add-opens com.thoughtworks.xstream.core.util=ALL-UNNAMED
> ?
> Or something else I don't see which dependency is requiring xstream.
>
> Thanks.
>