I would like to create a lightweight eclipse update site that would only reference to feature or plugins in remote update sites, in order to have a single entry point for my team to install and update all the common plugins that we use for some projects.
But I don't find a way to reference these external features/plugins. I've create some archive mapping to the external update sites, but it keeps downloading all the artifacts when building the update site.
Is there a way to prevent that so that we just have the descriptor locally?
You can do that but you have to add the plugins and features via archives to your site.xml. Furthermore, it is important to not change the names and to include all plugins that are needed by a feature in the archive path. Here is a snippet of a real example:
As you can see this includes the feature
de.vonloesch.pdf4eclipse_1.0.1.jar
from a github page. This features includes two plugins which were also added via<archive ... />.
The downside of this approach is that you must include any updated version of the feature by hand, but I do not think there is another possibility to include a foreign feature.
You can aggregate other remote update sites if you provide a composite p2 repo that can point to one or more remote repos. In your update directory, create 2 files:
compositeArtifacts.xml:
compositeContent.xml:
Then you can use your update directory as input to
Help>Install New Software