-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to jakarta.mail-api 2.1.0 #496
Update to jakarta.mail-api 2.1.0 #496
Conversation
The upshot is that this change requires Java 11 at runtime. @marcelmay are there any plans to move to Java 11? |
Sorry @adamretter for the late reply. I will roll a 2.x alpha 3 in the next few days, and then make Java 11 a requirement for GreenMail 2.x . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @adamretter! What's the current progress on this? :))
pom.xml
Outdated
<dependency> | ||
<groupId>org.eclipse.angus</groupId> | ||
<artifactId>angus-activation</artifactId> | ||
<version>1.0.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<version>1.0.0</version> | |
<version>2.0.0</version> |
As @lukasj suggested here: eclipse-ee4j/angus-mail#37 (comment)
@mabartos No progress on my part. Is something needed? |
0f9b1ae
to
296e71a
Compare
@mabartos @marcelmay I have now updated this for Eclipse Angus Mail 2.0.1 with is the Jakarta EE implementation of Jakarta Mail. However I am now seeing a couple of failing tests like:
I am not sure how GreenMail sets up its SSL identity for the host... any pointers? |
@adamretter Have you tried to execute these tests even before the upgrade? AFAIK, it's not possible to execute tests with TLS on a local machine. As in the code, there are no certs or other stuff required for the TLS establishment. |
@mabartos Running |
@adamretter , @mabartos - I can have a look on the SSL issue this weekend. Configuring GreenMails DummySSLSocketFactory might do the trick, see socket fetch properties: |
It seems Angus Mail enables This breaks with JavaMail, as the default was always false:
To fix this, you'll need to set the property to
|
296e71a
to
946b23d
Compare
@marcelmay Awesome thanks! I have just added that change now :-) |
@marcelmay would you be able to kick off the CI for this? |
@marcelmay Thanks for kicking off the CI. I just wondered if you perhaps yet had any idea of a timeline for this change to be included and released in a version of GreenMail? |
I hope to roll 2.0 this weekend, and would also do an initial 2.1 "alpha" (=2.0 + this PR) then. |
GreenMail 2.0 is out, will do 2.1.0-alpha-1 including this PR next at the beginning of this week. |
This updates to jakarta mail api 2.1.0 and Eclipse Angus as the new API implementation.
However this is not yet working... see eclipse-ee4j/angus-mail#37