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

Bug 365752

Summary: Build succeeds when using "require bundle" but fails when using "import package"
Product: z_Archived Reporter: Davy Meers <davymeers>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Failing minimal project that uses import package
none
Succeeding minimal project that uses require bundle none

Description Davy Meers CLA 2011-12-06 10:33:38 EST
Build Identifier: 20110916-0149

When using "import package" to specify a dependency the build fails with a resolution error.

When building the same project but using "require bundle" instead the build succeeds.

I created a minimal example that shows the problem.
For this example i use an implicit target platform but the problem also occurs when using an explicit target platform file.

Reproducible: Always
Comment 1 Tobias Oberlies CLA 2011-12-06 10:46:56 EST
p2 bug 360659?

We really need to fix the debug output - everything is a "resolution error"...
Comment 2 Davy Meers CLA 2011-12-06 10:55:08 EST
Created attachment 207998 [details]
Failing minimal project that uses import package
Comment 3 Davy Meers CLA 2011-12-06 10:55:49 EST
Created attachment 207999 [details]
Succeeding minimal project that uses require bundle
Comment 4 Davy Meers CLA 2011-12-06 10:58:57 EST
I think it is indeed that p2 bug.
Comment 5 Davy Meers CLA 2011-12-06 11:06:09 EST
(In reply to comment #4)
> I think it is indeed that p2 bug.

Update: It is indeed that bug. By adding the attribute "core" to the import package that build succeeds too.



This bug can be closed.
Comment 6 Tobias Oberlies CLA 2011-12-09 03:26:23 EST
This still is a Tycho problem (because Tycho includes p2), but if you are satisfied with the explanation, we could close this issue as "invalid". It's definately not "fixed".
Comment 7 Davy Meers CLA 2011-12-12 07:42:35 EST
(In reply to comment #5)
> Update: It is indeed that bug. By adding the attribute "core" to the import
> package that build succeeds too.

As a follow-up: in the end adding the attribute was not a solution and i had to use require bundle.

(In reply to comment #6)
> This still is a Tycho problem (because Tycho includes p2), but if you are
> satisfied with the explanation, we could close this issue as "invalid". It's
> definately not "fixed".

I am satisfied with the explanation.
It would be useful if tycho could provide a more descriptive error message.
Do you want me to create a bug for that?

ps: The selection of Resolved / Fixed was by accident.
Comment 8 Tobias Oberlies CLA 2011-12-13 05:37:30 EST
(In reply to comment #7)
> It would be useful if tycho could provide a more descriptive error message.
> Do you want me to create a bug for that?
Yes, this would be useful, thanks!