- GOAL:
- Trying to install palm-webos-sdk Eclipse plugin from an offline/mirrored location.
- PROCEDURE:
- 1. Mirror the palm-webos-sdk plugin site.
- 2. Install the mirrored plugin, using either the "dropins" folder, or the older "links" method.
- PROBLEM:
- Eclipse refuses to load the plugin, and logs one of the two following error blocks to the Error Log View:
- - "An error occurred while installing the items"
- - "Failed to prepare partial IU: [R]com.palm.pdt 2.0.0.201106022334."
- - "session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.palm.pdt 2.0.0.201106022334, action=)."
- - "The artifact file for osgi.bundle,com.palm.pdt,2.0.0.201106022334 was not found."
- or:
- - Provisioning exception
- - No repository found at file:/C:/Applications/Eclipse/eclipse/dropins/palm-webos-sdk/.
- ECLIPSE INFORMATION:
- Eclipse SDK
- Version: 3.7.0
- Build id: I20110613-1736
- RELEVANT LINKS:
- <http://stackoverflow.com/questions/1371176/downloading-eclipse-plug-in-update-sites-for-offline-installation>
- <http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring#Running_the_Mirroring_Tools>
- <http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/>
- <http://wiki.eclipse.org/Equinox_p2_Getting_Started#Supported_dropins_formats>
- MY PROGRESS (SO FAR):
- 1. Contents of my custom "mirror-palm-webos-sdk.bat":
- $eclipse_home/eclipsec -nosplash -verbose -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source https://cdn.downloads.palm.com/sdkdownloads/eclipse/update-site/ -destination palm-webos-sdk-artifact
- $eclipse_home/eclipsec -nosplash -verbose -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source https://cdn.downloads.palm.com/sdkdownloads/eclipse/update-site/ -destination palm-webos-sdk-metadata
- java -jar $eclipse_home/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from https://cdn.downloads.palm. com/sdkdownloads/eclipse/update-site/ -to palm-webos-sdk-artifact
- mkdir palm-webos-sdk
- mv palm-webos-sdk-artifact/* palm-webos-sdk/
- mv palm-webos-sdk-metadata/* palm-webos-sdk/
- rmdir palm-webos-sdk-artifact
- rmdir palm-webos-sdk-metadata
- 2. Resulting directory structure:
- palm-webos-sdk/
- palm-webos-sdk/features/
- palm-webos-sdk/features/com.palm.pdt.feature_2.0.0.201106022334.jar
- palm-webos-sdk/plugins/
- palm-webos-sdk/plugins/com.palm.pdt.core_2.0.0.201106022334.jar
- palm-webos-sdk/plugins/com.palm.pdt.debug.core_2.0.0.201106022334.jar
- palm-webos-sdk/plugins/com.palm.pdt.debug.ui_2.0.0.201106022334.jar
- palm-webos-sdk/plugins/com.palm.pdt.ui_2.0.0.201106022334.jar
- palm-webos-sdk/plugins/com.palm.pdt_2.0.0.201106022334.jar
- palm-webos-sdk/artifacts.jar
- palm-webos-sdk/content.jar
- palm-webos-sdk/site.xml
- 3. Copied resulting "palm-webos-sdk" directory structure to the "$eclipse_home/dropins" directory.
- Result: Eclipse failed to load the plugin, and logged the first error block listed above to the Error Log View.
- 4. Restructured the "$eclipse_home/dropins/palm-webos-sdk" directory structure to look like the following:
- palm-webos-sdk/eclipse/
- palm-webos-sdk/eclipse/features/
- palm-webos-sdk/eclipse/features/com.palm.pdt.feature_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/plugins/
- palm-webos-sdk/eclipse/plugins/com.palm.pdt.core_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/plugins/com.palm.pdt.debug.core_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/plugins/com.palm.pdt.debug.ui_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/plugins/com.palm.pdt.ui_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/plugins/com.palm.pdt_2.0.0.201106022334.jar
- palm-webos-sdk/eclipse/artifacts.jar
- palm-webos-sdk/eclipse/content.jar
- palm-webos-sdk/eclipse/site.xml
- Result: Eclipse failed to load the plugin, and logged the second error block listed above to the Error Log View.
- 5. Restored the "palm-webos-sdk" directory structure to its original form (no intermediate "eclipse" directory), and moved it outside of the "$eclipse_home" directory; created an "$eclipse_home/links" directory, and created a file in "$eclipse_home/links/" called "palm-webos-sdk.link", containing the following text:
- path=C:/path/to/palm-webos-sdk
- Result: Eclipse failed to load the plugin, and logged the first error block listed above to the Error Log View.
- 6. Recreated the "eclipse" directory below "palm-webos-sdk" and moved everything into it.
- Result: Eclipse failed to load the plugin, and logged the second error block listed above to the Error Log View.
- Does anybody know what I'm doing wrong?