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

Bug 313763

Summary: org.hamcrest.*.source not found when updating SDK
Product: [Technology] SWTBot Reporter: Steffen Pingel <steffen.pingel>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: KetanPadegaonkar
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Steffen Pingel CLA 2010-05-20 12:32:08 EDT
I had 3.6M7 installed and the following repositories enabled:

http://download.eclipse.org/releases/helios
http://download.eclipse.org/eclipse/updates/3.6milestones/

When I used Check for Update which listed a new Eclipse SDK the install failed with the error below. I was able to fix it by adding this repository:

http://download.eclipse.org/tools/orbit/downloads/drops/S20100514103823/repository


-- Error Details --
Date: Thu May 20 09:05:35 PDT 2010
Message: An error occurred while collecting items to be installed
Severity: Error
Product: Eclipse SDK 3.6.0.v201004200800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.equinox.p2.engine
Session Data:
eclipse.buildId=I20100420-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_CA


-- Error Details --
Date: Thu May 20 09:05:35 PDT 2010
Message: No repository found containing: osgi.bundle,org.hamcrest.text.source,1.1.0.v20090501071000
Severity: Error
Product: Eclipse SDK 3.6.0.v201004200800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.equinox.p2.artifact.repository

-- Error Details --
Date: Thu May 20 09:05:35 PDT 2010
Message: No repository found containing: osgi.bundle,org.hamcrest.library.source,1.1.0.v20090501071000
Severity: Error
Product: Eclipse SDK 3.6.0.v201004200800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.equinox.p2.artifact.repository

-- Error Details --
Date: Thu May 20 09:05:35 PDT 2010
Message: No repository found containing: osgi.bundle,org.hamcrest.integration.source,1.1.0.v20090501071000
Severity: Error
Product: Eclipse SDK 3.6.0.v201004200800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.equinox.p2.artifact.repository

-- Error Details --
Date: Thu May 20 09:05:35 PDT 2010
Message: session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Severity: Error
Product: Eclipse SDK 3.6.0.v201004200800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.equinox.p2.engine
Comment 1 Kim Moir CLA 2010-05-20 16:18:09 EDT
We only provide org.eclipse.hamcrest.core bundle and source bundle in the Eclipse/Equinox repository.  We don't provide any other hamcrest bundles. Looking at the recent Helios repository, it doesn't look like any other projects provide other hamcrest bundles either.  Therefore it would make sense that you would have to retrieve it from the Orbit repository. All the bundles in Orbit aren't in the Helios repository. There are only the Orbit bundles that the contributing projects provide to Helios.
Comment 2 Steffen Pingel CLA 2010-05-20 16:45:27 EDT
Thanks Kim. I still don't quite understand why P2 was trying to download these bundles. The only other things that I had installed were various SWTbot features (and Mylyn which does not depend on hamcrest). 

Ketan, could the hamcrest dependency on source bundles come from SWTbot?
Comment 3 Ketan Padegaonkar CLA 2010-05-20 17:06:01 EDT
(In reply to comment #2)
> Thanks Kim. I still don't quite understand why P2 was trying to download these
> bundles. The only other things that I had installed were various SWTbot
> features (and Mylyn which does not depend on hamcrest). 
> 
> Ketan, could the hamcrest dependency on source bundles come from SWTbot?

SWTBot does not have separate .SDK feature or a .source bundle.

The swtbot feature bundles hamcrest(with sources) which are distributed on the swtbot update site.
Comment 4 Kim Moir CLA 2010-05-20 17:09:49 EDT
moving to swtbot bucket