Bug 304755 - [releng] provide support feature for connector that depend on org.eclipse.mylyn.commons.net
Summary: [releng] provide support feature for connector that depend on org.eclipse.myl...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.4   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 305782
  Show dependency tree
 
Reported: 2010-03-04 17:59 EST by Steffen Pingel CLA
Modified: 2010-04-23 21:48 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2010-03-04 17:59:05 EST
Connectors that depend on org.eclipse.mylyn.commons.net need to redistribute the plug-in in their features to support old UM manager installations. Since the plug-in is also distributed in Mylyn features it has a fixed version to avoid conflicts. This currently prevents evolution of the plug-in. In order to resolve this a separate feature needs to be created that contains org.eclipse.mylyn.commons.net and its dependencies (related: bug bug 280826).
Comment 1 Shawn Minto CLA 2010-03-04 19:02:46 EST
Should this include the soap package too, or should we create a separate feature for that too?
Comment 2 Steffen Pingel CLA 2010-03-04 21:50:17 EST
I think it makes sense to keep these separate since Axis + dependencies adds a bunch of libraries but we can discuss that before creating the features. There is also the related question of how we are going to distribute (and split) commons UI.
Comment 3 Steffen Pingel CLA 2010-04-23 21:48:35 EDT
The challenge is that each of the commons plug-ins (core, net, ui, soap, xmlrpc) would require a separate feature to satisfy integrators needs or not marked as singletons. The latter won't work as some plug-ins export extension points or are intentionally designed as singletons. To avoid adding five new features we have come up with the following solution:

A new feature org.eclipse.mylyn.commons has been added which includes all commons plug-ins. This feature is provided for update manager compatibility and not categorized on the update site or P2 repository. To avoid conflicts this feature must be the only including the commons plug-ins. All other features should only import all required commons plug-ins. 

That means integrators need to remove all plugin entries from feature.xml files that reference org.eclipse.mylyn.commons.* plug-ins, e.g.:

 <plugin
         id="org.eclipse.mylyn.commons.soap"
         ...
         
And replace the plugin element with an import:

   <requires>
      <import plugin="org.eclipse.mylyn.commons.soap" version="3.2.0" match="compatible"/>
   </requires>

In addition we recommend adding an import for required Mylyn features to ensure that other dependencies are resolved on a feature rather than plug-in level:

       <import feature="org.eclipse.mylyn_feature" version="3.2.0" match="compatible"/>