Closed johnchurchill closed 2 months ago
I'm not sure what is happening on your machine, but if I request the dependency tree for 8.11.2 (and 8.11.3) on a fresh clean project, it shows proper versions:
[INFO] - org.simplejavamail:simple-java-mail:jar:8.11.3:compile [INFO] +- org.simplejavamail:core-module:jar:8.11.3:compile [INFO] | +- jakarta.mail:jakarta.mail-api:jar:2.1.3:compile [INFO] | | - jakarta.activation:jakarta.activation-api:jar:2.1.3:compile [INFO] | +- org.eclipse.angus:angus-mail:jar:2.0.3:runtime [INFO] | | - org.eclipse.angus:angus-activation:jar:2.0.2:runtime [INFO] | - com.sanctionco.jmail:jmail:jar:1.4.1:compile [INFO] +- com.github.bbottema:jetbrains-runtime-annotations:jar:1.0.2:compile [INFO] +- com.pivovarit:throwing-function:jar:1.5.1:compile [INFO] - org.slf4j:slf4j-api:jar:2.0.13:compile
Sounds like you have some dependency management going on in one of the parent poms. Or something.
8.5.2 works, but I can't upgrade beyond that without dependency overrides. I'm running OpenJdk 19 on MacOS and GCP cloud function gen 2 with Java 17. The project has a parent mvn project with simple-java-mail and email service. The child project adds only spring-boot-starter-web 3.3.2 (latest). After the simple java mail upgrade to 8.11.2 (or just 8.6.0), I get the following:
dependency:tree shows:
Those libraries do not include org.eclipse.angus.mail.smtp.SMTPMessage. No other "mail" in the dependency tree. My only solution that worked is to add the following to the child mvn project:
dependency:tree then shows:
... and mail works again. I haven't tried using non-springboot project, I assume that would work since 489 was made half a year ago. Any ideas on what is the conflict, and how to keep my pom cleaner than adding that mess to the subproject?