Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 404949

Summary: remove bundles that are not required when running on 1.6 or later
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: krzysztof.daniel, shawn.minto
Version: unspecified   
Target Milestone: 3.9   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 383907    
Bug Blocks:    

Description Steffen Pingel CLA 2013-04-04 16:28:07 EDT
Since Mylyn now requires Java 1.6 or later (see bug 383907) some bundles from Orbit can be dropped from the distribution since packages can be consumed from the JVM.

bug 398092: javax.xml.soap
bug 398088: javax.xml.bind
bug 398093: javax.xml.stream
Comment 1 Steffen Pingel CLA 2013-04-04 16:28:45 EDT
Krzysztof, anything other bundles that we should consider?
Comment 2 Krzysztof Daniel CLA 2013-04-11 06:31:02 EDT
javax.activation
Comment 3 Krzysztof Daniel CLA 2013-04-11 06:43:40 EDT
Affected files:

./org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.soap/META-INF/MANIFEST.MF
./org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.core/META-INF/MANIFEST.MF

./org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.sdk-feature/feature.xml
./org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson-feature/feature.xml
./org.eclipse.mylyn.builds/org.eclipse.mylyn.builds.sdk-feature/feature.xml
./org.eclipse.mylyn.tasks/org.eclipse.mylyn.bugzilla-feature/feature.xml

Preparing a patch now.
Comment 5 Krzysztof Daniel CLA 2013-04-11 08:18:42 EDT
Those three patches remove aforementioned bundles from the mylyn, but not from it's deps:
* javax.activation is required by: com.sun.xml.bind, javax.mail, javax.xml.soap, org.apache.axis
* javax.xml.soap is required by org.apache.axis, javax.xml.rpc
* javax.xml.stream is required by com.sun.xml.bind
Comment 6 Steffen Pingel CLA 2013-04-11 12:14:20 EDT
(In reply to comment #5)
> Those three patches remove aforementioned bundles from the mylyn, but not from
> it's deps:
> * javax.activation is required by: com.sun.xml.bind, 

We should be able to drop com.sun.xml.bind since it was only needed for 1.5.

> javax.mail, javax.xml.soap, org.apache.axis

These are only required for SOAP which none of the built in Mylyn connectors require. Would it make a difference to split all SOAP dependencies into a separate feature? We would end up with:

pre. 
org.eclipse.mylyn.commons.soap_feature:
 javax.activation
 javax.xml.soap
 javax.wsdl
 org.apache.axis
 
We would drop these bundles (still needs verification):

pre. 
 com.sun.xml.bind
 javax.xml  (only present in the build target)
 javax.xml.bind
 javax.xml.stream
Comment 7 Krzysztof Daniel CLA 2013-04-15 08:27:29 EDT
Sounds good!
Comment 8 Steffen Pingel CLA 2013-04-22 20:08:35 EDT
Here are the reviews:

Mylyn Commons: https://git.eclipse.org/r/#/c/12115/
Mylyn Tasks: https://git.eclipse.org/r/#/c/12113/
Mylyn Builds: https://git.eclipse.org/r/#/c/12114/
Comment 9 Steffen Pingel CLA 2013-04-22 20:29:01 EDT
Target platform update: https://git.eclipse.org/r/#/c/12117/
Comment 10 Steffen Pingel CLA 2013-04-24 15:41:29 EDT
I verified manually that installing still worked without having the bundles included in the SOAP feature on the update site. I pushed another review to add the SOAP feature to the site for integrators to consume (but none of the Mylyn features depend on it): https://git.eclipse.org/r/#/c/12167/.
Comment 11 Steffen Pingel CLA 2013-04-25 08:12:03 EDT
The latest weekly build now has the Axis dependencies split out into a separate feature. Krzysztof, please let me know if there is anything we missed.
Comment 12 Krzysztof Daniel CLA 2013-05-03 03:34:03 EDT
While building recent version of mylyn for Fedora I've found 
javax.xml in http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.tasks.git/tree/org.eclipse.mylyn.sdk-feature/feature.xml
Comment 13 Steffen Pingel CLA 2013-05-03 05:18:50 EDT
Yes, sorry, we had to put that back, since we recently added Apache Xerces 2.9 as a dependency. The Xerces bundle requires javax.xml 1.3.4 to be present.