Bug 999478

Summary: Productized cxf-api has dependency on javax.mail:mail, community based doesn't
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Nikoleta Hlavickova <nziakova>
Component: Maven RepositoryAssignee: Yong Yang <yyang>
Status: CLOSED EOL QA Contact: Nikoleta Hlavickova <nziakova>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.1CC: bsutter, rsvoboda, ttarrant
Target Milestone: ---Keywords: Reopened
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:48:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nikoleta Hlavickova 2013-08-21 11:39:42 UTC
EAP 6.1.1 ER7

Product based dependency tree:
   +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.6.8.redhat-7:compile
   |  +- org.apache.cxf:cxf-api:jar:2.6.8.redhat-7:compile
   |  |  \- javax.mail:mail:jar:1.4.5:compile
   |  |     \- javax.activation:activation:jar:1.1:compile
   |  \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.6.8.redhat-7:compile

Community based dependency tree:
   +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.6.8:compile
   |  +- org.apache.cxf:cxf-api:jar:2.6.8:compile
   |  |  \- org.apache.ws.xmlschema:xmlschema-core:jar:2.0.3:compile
   |  \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.6.8:compile

javax.mail was not present in dependency tree in ER6 nor is it present in community based dependency tree

There was similar issue for cxf-rt-core that was fixed in ER4 - BZ 958869

Comment 1 Rostislav Svoboda 2013-08-22 09:34:20 UTC
It's probably related to this:

http://pkgs.devel.redhat.com/cgit/rpms/apache-cxf/log/?h=jb-eap-6-rhel-6
* 	Use javax.mail instead of geronimo mail api


jboss-eap-6.1.1.GA-maven-repository/org/jboss/ws/cxf/jbossws-cxf-client/4.1.4.Final-redhat-7/jbossws-cxf-client-4.1.4.Final-redhat-7.pom still contains 
                        <exclude>org.apache.geronimo.specs</exclude>

This should be probably changed to javax.mail ...

Comment 2 Yong Yang 2013-08-26 05:18:21 UTC
It's preferred to use jboss or official specs api, instead of geronimo ones.

Comment 3 Rostislav Svoboda 2013-08-26 09:56:00 UTC
Agree with using jboss or official specs api.

Productized javax.mail:mail is available - jboss-eap-6.1.1.GA-maven-repository/javax/mail/mail/1.4.5-redhat-1/mail-1.4.5-redhat-1.jar

See description - dependency tree for upstream jbossws-cxf-client is not using javax.mail or geronimo mail api. It's excluded, product based jbossws-cxf-client should be in sync.

Comment 4 Rostislav Svoboda 2013-08-27 08:48:57 UTC
Reopening, the problem is that javax.mail:mail shouldn't be in dependency tree for jbossws-cxf-client.

Dependency tree for upstream jbossws-cxf-client doesn't contain javax.mail or geronimo mail api, it's excluded.

We want to have it in sync. Please exclude javax.mail for jbossws-cxf-client.