One fine day, I came across the same / similar situation. Try the following:
Add the lines below to the list of dependencies:
<dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.1</version> </dependency>
Hope this helps
source share