jenkinsci / lib-mock-javamail

JavaMail mock objects
8 stars 8 forks source link

Does not work on jakarta mail 2.1.3 #83

Closed RobertFloor closed 2 weeks ago

RobertFloor commented 3 weeks ago

What feature do you want to see added?

We tried to use the lib-mock-java mail with jakarta mail 2.1.3. The method of injecting the Mock Transport via the POM did not work. We confirmed it worked in version 2.1.2 but no in 2.1.3. I assume it is releated to this change in jakarta mail: https://github.com/jakartaee/mail-api/issues/665

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <mail.smtp.class>org.jvnet.mock_javamail.MockTransport</mail.smtp.class

Upstream changes

No response

Are you interested in contributing this feature?

No response