(geronimo-mail) 02/04: Include the relocated mime4j classes in the geronimo-mail_2.1_mail bundle

[email protected] Sat, 18 Jul 2026 08:28:00 +0000
Newsgroups gmane.comp.java.geronimo.cvs
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch mail-tck
in repository https://gitbox.apache.org/repos/asf/geronimo-mail.git

commit af46eb9a06f238d7271d2ecc1e353a48230620a8
Author: Richard Zowalla <[email protected]>
AuthorDate: Sat Jul 18 10:27:41 2026 +0200

    Include the relocated mime4j classes in the geronimo-mail_2.1_mail bundle
    
    The provider classes reference the mime4j codec package that the spec jar
    shades to org.apache.geronimo.mail.james.mime4j, but the merged bundle never
    packaged those classes: in OSGi they resolve via Import-Package, while on a
    flat classpath (as used by the Jakarta Mail TCK) every code path touching the
    codec failed with NoClassDefFoundError.
---
 geronimo-mail_2.1_impl/geronimo-mail_2.1_mail/pom.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/geronimo-mail_2.1_impl/geronimo-mail_2.1_mail/pom.xml b/geronimo-mail_2.1_impl/geronimo-mail_2.1_mail/pom.xml
index 3170249..94eb985 100644
--- a/geronimo-mail_2.1_impl/geronimo-mail_2.1_mail/pom.xml
+++ b/geronimo-mail_2.1_impl/geronimo-mail_2.1_mail/pom.xml
@@ -134,7 +134,8 @@
                             org.apache.geronimo.osgi.locator,
                             org.apache.geronimo.mail,
                             org.apache.geronimo.mail.util,
-                            org.apache.geronimo.mail.authentication
+                            org.apache.geronimo.mail.authentication,
+                            org.apache.geronimo.mail.james.mime4j*
                         </Private-Package>
                         <Export-Package>
                             jakarta.mail*;version=2.1,