Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318617 - installing features using p2 gives error on SDKProfile dependency
Summary: installing features using p2 gives error on SDKProfile dependency
Status: RESOLVED INVALID
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 10:45 EDT by vinay CLA
Modified: 2010-07-14 02:47 EDT (History)
0 users

See Also:


Attachments

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