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

Bug 318617

Summary: installing features using p2 gives error on SDKProfile dependency
Product: [Eclipse Project] Equinox Reporter: vinay <vinay.cyprss>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description vinay CLA 2010-07-01 10:45:30 EDT
Build Identifier: I20100608-0911

I am bundling all my features using PDE build and generating metadata for the bundles using EclipseGenerator application as follows:

java
-cp #{@equinox_launcher}
org.eclipse.equinox.launcher.Main
-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator
-updateSite repoLocation

-metadataRepository repoLocation
-metadataRepositoryName 'repo name'
-artifactRepository repoLocation
-artifactRepositoryName 'repo name'
-reusePack200Files -vmargs -Xmx128M

and use p2.director to install the features as,

java
-cp #{equinox_launcher_jar}
org.eclipse.equinox.launcher.Main
-application org.eclipse.equinox.p2.director
-metadataRepository file:#{feature_folder_location}/
-artifactRepository file:#{feature_folder_location}/

-installIU features.join(',')
-destination #{target}
-profile SDKProfile
-roaming -consoleLog
-vmArgs -Declipse.p2.data.area=#{target}/p2

The installation used to work smoothly on Eclipse 3.5. But in 3.6, its giving me the following error,

Missing requirement: Shared profile 1.0.0.1277993944303 (SharedProfile_SDKProfile 1.0.0.1277993944303) requires 'SharedProfile_SDKProfile [1.0.0.1277985359155]' but it could not be found

I checked in my destination eclipse and both profile exists. Please let me know how could I resolve this error.

Reproducible: Always
Comment 1 vinay CLA 2010-07-14 02:47:56 EDT
I got rid of this problem. I was expanding eclipse_SDK and ecelipse_for_java_devs into the same folder which was acting as target platform. 
I resolved it by expanding only eclipse_SDK for the target platform.