Download plug-ins as defined in the target definition file?

406 views Asked by At

we've an eclipse RCP application with a target platform where the entire target platform is based on p2 update sites ... The problem is now that we want to use our application in the application domaine for testing purposes (running it in the eclipse environment for debugging), but the problem is that there is no internet connection allowed in this area so we need to download our entire target platform. Is there a way we can exactly download all plug-ins as defined in the target definition of eclipse? I know that there is a way of downloading the entire p2 update site, but the problem is that some of this site contains duplicated plug-ins with different versions and because eclipse always uses the latest version we get a lot of conflicts. That's why we excluded the duplicated plug-ins from our target definition like this: enter image description here

Thanks in advance for your help!

1

There are 1 answers

2
E-Riz On BEST ANSWER

To use a Target definition in Eclipse on a workstation with no or limited Internet access, there are (at least) a couple of options:

  1. Set up local mirrors of each p2 repository used in your Target. Eclipse p2 has command-line tools to do this. Once you have local mirrors you can create an alternate Target definition that replaces the source repository URLs with the local mirror URLs. The process is described in more detail here.

  2. Create an Update Site project that includes all the bundles used in your Target definition. You first create a Feature project that includes everything used in your Target, as well as your workspace projects that make up your plugin(s) or application. You then create an Update Site project that publishes that Feature, and export that Update Site. Exporting will produce a local update site that you can then use in a modified version of your Target definition. Detailed documentation is here.