The Maven coordinates changed some time ago to be compatible with the scheme described here. The new coordinates are here.
In short:
- The groupId
javax.mailis no longer used for the implementation. - There is a new artifact at
javax.mail:javax.mail-api. It provides thejavax.mail-api.jarfile. This contains the JavaMail API definitions only, suitable for compiling against. com.sun.mail:javax.mailcontains thejavax.mail.jarfile, the JavaMail reference implementation jar file, including the SMTP, IMAP, and POP3 protocol providers.
So, you should either use com.sun.mail:javax.mail for compilation and packaging/deploy, or use javax.mail:javax.mail-api for compilation and then deploy the com.sun.mail:javax.mail jar where appropriate (e.g., your Tomcat lib).