First, turn on JavaMail debugging by passing "-Dmail.debug=true" to Maven, That should tell you what the problem is - your description really gives us nothing to work with.
If Gmail indeed no longer allows you to log in using a password (which I have a hard time believing, but I guess it's possible), then the easiest approach would be to use some other mail provider that does allow you to do that.
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss