Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349966 - BundlesAction produced more than one IU
Summary: BundlesAction produced more than one IU
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Tobias Oberlies CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 13:26 EDT by Simon Goodall CLA
Modified: 2021-04-28 16:55 EDT (History)
1 user (show)

See Also:


Attachments
Exception stack trace (4.46 KB, text/x-log)
2011-06-21 13:30 EDT, Simon Goodall CLA
no flags Details
Sample project (2.25 KB, application/x-gzip)
2011-06-21 13:31 EDT, Simon Goodall CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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  :-)