multiple versions of javamail jar causing NoSuchProviderException
问题 I have a standalone library ( jar file) that is added to the application server classpath to monitor all the running applications in the JVM and send email when some issue happens. the jar file have all the dependencies bundled in the jar (using the maven-shade-plugin) including the javamail jar file. When one of the other webapplications in the appserver have javamail as a dependency, some dependency conflict happens with the javamail in my jar file and I get an exception MessagingException