I have a charset library, MyCharsetProvider.jar, containing SP code as a subclass of java.nio.charset.spi.CharsetProvider as per specs (https://docs.oracle.com/javase/8/docs/api/java/nio/charset/spi/CharsetProvider.html)..and in src\main\resources\META-INF\services\java.nio.charset.spi.CharsetProvider containing com.myorg.MyCharsetProvider. This SPI will respond for MyCharset with another charset name..
In my sprintboot app, pom.xml my charset provider is referred. I am calling charset.forName("MyCharset"), within eclipse when I ran (i.e not jar), JVM is able to call MyCharsetProvider.. however when i build a jar via maven and run the jar, JVM does not recognize the presence of MyCharsetProvider.
any ideas what is happening?