[ https://issues.apache.org/jira/browse/CXF-9143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955482#comment-17955482 ]
Daniel Meier edited comment on CXF-9143 at 6/1/25 9:54 AM: ----------------------------------------------------------- After debugging through the failed tests, I found out that Angus Mail is required since CXF (or at least the failing test) depends on the {{DataContentHandler}} s which are implicitly registered by the [{{META-INF/mailcap}} file in the Angus Mail Jar |https://github.com/eclipse-ee4j/angus-mail/blob/2.0.3/core/src/main/resources/META-INF/mailcap]. Since I am not familiar enough with the code of CXF to determine whether it is really needed at runtime, I prefer not to make any changes to the dependencies. was (Author: dnl): After debugging through the failed tests, I found out that Angus Mail is required since CXF (or at least the failing test) depends on the {{DataContentHandler}}s which are implicitly registered by the [{{META-INF/mailcap}} file in the Angus Mail Jar |https://github.com/eclipse-ee4j/angus-mail/blob/2.0.3/core/src/main/resources/META-INF/mailcap]. Since I am not familiar enough with the code of CXF to determine whether it is really needed at runtime, I prefer not to make any changes to the dependencies. > Remove Jakarta Mail and Jakarta Activation-Impl Dependencies > ------------------------------------------------------------ > > Key: CXF-9143 > URL: https://issues.apache.org/jira/browse/CXF-9143 > Project: CXF > Issue Type: Improvement > Components: Core, Simple Frontend > Affects Versions: 4.1.2 > Reporter: Daniel Meier > Priority: Major > > We are currently in the process of upgrading our application from Jakarta EE > 8 to Jakarta EE 10 which of course also affects CXF. Our application also > uses the Jakarta Mail API and to make progress during migration I just > commented out the old dependency on the Sun Mail Implementation > ({{com.sun.mail:jakarta.mail}}) and wanted to look at it at a later time. I > then saw that a mail implementation (Apache Angus) was a transitive > dependency of CXF. I looked at the source code of CXF and it seems like not > even the Jakarta Mail API is used outside of test code. > A implementation of the Jakarta Activation API (Apache Angus) is also a > dependency of CXF, even though no SPI classes ({{MailcapRegistry}}, > {{MailcapRegistryProvider}}, {{MimeTypeRegistry}}, > {{MimeTypeRegistryProvider}}) are used. > Would it be possible to remove those transitive Dependencies? -- This message was sent by Atlassian Jira (v8.20.10#820010)