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

Bug 349966

Summary: BundlesAction produced more than one IU
Product: z_Archived Reporter: Simon Goodall <simon.goodall>
Component: TychoAssignee: Tobias Oberlies <t-oberlies>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: kkreuzer
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Exception stack trace
none
Sample project none

Description Simon Goodall CLA 2011-06-21 13:26:34 EDT
Build Identifier: 0.13.0-SNAPSHOT

When switching my previously working build to tycho 0.13.0-SNAPSHOT from 0.12.0 the build now fails with the error "BundlesAction produced more than one IU". These seems to be related to using SWTBot in my test plugin. Adding a Require-Bundle on "org.eclipse.swtbot.eclipse.ui" triggers the error. Removing it causes the build to pass.

Reproducible: Always

Steps to Reproduce:
1. Created a eclipse-test-plugin project with dep on org.eclipse.swtbot.eclipse.ui
2. Run mvn integration-test
3. Failure
Comment 1 Simon Goodall CLA 2011-06-21 13:30:17 EDT
Created attachment 198349 [details]
Exception stack trace
Comment 2 Simon Goodall CLA 2011-06-21 13:31:32 EDT
Created attachment 198350 [details]
Sample project

Sample project. Run "mvn integration-test" to trigger issue
Comment 3 Kai Kreuzer CLA 2011-06-22 15:50:22 EDT
> These seems to be related to using SWTBot in my test plugin.

It is not related to SWTBot - I am experiencing the same problem with some simple Plugin tests and no SWTBot being involved.
Comment 4 Tobias Oberlies CLA 2011-07-08 13:24:46 EDT
This problem is fixed with 7602b38. The problem was that the BundlesAction was called for all p2 dependencies when resolving the test runtime.

I am glad that I added the "more than one IU" assertion, because in this way we discovered this issue. Nevertheless I think it is not entirely correct - and hence shall be removed eventually.

@Simon: Thanks for the good bug report  :-)