Bug 546441 - Site Manifest Editor build command fails for unsatisfied Import-Package in feature dependencies
Summary: Site Manifest Editor build command fails for unsatisfied Import-Package in fe...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.11   Edit
Hardware: PC Windows Server 2008
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-15 12:16 EDT by Adrian Price CLA
Modified: 2023-03-27 15:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Price CLA 2019-04-15 12:16:33 EDT
Noticed while attempting to Build org.eclipse.test_3.7.200.v20170511-1043, having imported it from the target platform into the workspace then added it to site.xml. The Build command fails with the following exception:

Processing inclusion from feature org.eclipse.test: Bundle org.mockito_1.9.5.v201605172210 failed to resolve.:
	Unsatisfied import package COM.jrockit.reflect_0.0.0.
	Unsatisfied import package jrockit.vm_0.0.0.
	Unsatisfied import package org.hamcrest_[1.0.0,2.0.0).
	Unsatisfied import package sun.reflect_0.0.0.

NOTE that in org.mockito_1.9.5.v201605172210/META-INF/MANIFEST.MF, Import-Package specifies resolution:=optional for COM.jrockit.reflect, jrockit.vm and sun.reflect, and that the non-optional import of org.hamcrest_[1.0.0,2.0.0) ought, I would have thought, to have been satisfied by the inclusion of a compatible version of that bundle in org.eclipse.test_3.7.200.v20170511-1043's feature.xml, thus:

   <plugin
         id="org.hamcrest.core"
         download-size="53"
         install-size="111"
         version="1.3.0.v201303031735"
         unpack="false"/>
...
   <plugin
         id="org.hamcrest.library"
         download-size="62"
         install-size="142"
         version="1.3.0.v201505072020"
         unpack="false"/>

I also tried importing those exact versions of the above into the workspace as binary plug-ins, to no avail.

So this leaves me with two questions:
1. Why do unresolved *optional* Import-Package statements in a downstream dependency cause the feature build to fail?
2. Why doesn't the feature build resolve a non-optional Import-Package statement in a downstream dependency to a compatible version of the containing plug-in when that plug-in is explicitly included in the manifest of the feature being built?
Comment 1 Eclipse Genie CLA 2021-04-05 03:17:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Eclipse Genie CLA 2023-03-27 15:36:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.