Check if the java.mail:mail (see [1]) dependency is really necessary.
- If not, then remove the dependency.
- If yes, then upgrade to a newer version. (Note: the artefact java.mail has moved to javax.mail-api)
Check if the java.mail:mail (see [1]) dependency is really necessary.