I think COMPAT is going away in Java 23: https://inside.java/2024/07/11/quality-heads-up/
Gary On Wed, Aug 7, 2024, 7:43 AM Martin Desruisseaux < martin.desruisse...@geomatys.com> wrote: > Le 2024-08-07 à 12 h 49, Guillaume Nodet a écrit : > > > > I thought we set the default encoding in the root pom a while ago ? > > > Apparently not. The default encoding is ${project.build.sourceEncoding}. > But if this property is not explicitly set in user's project, we get the > warning (tested with Maven 3 and 4). > > Note: I would not recommend to change that. In addition of being > no-longer necessary since Java 18, a user can also explicitly request > the JVM to use native encoding with the `|-Dfile.encoding=COMPAT|` > option. If a user has been explicit about that, I don't think that we > should override her/his decision. > > Martin > >