Questions tagged [p2]

p2 is the platform provisioning system used by the eclipse IDE and the eclipse RCP framework. It is an artifact and metadata repository and allows some kind of dependency resolution. it supports mirroring and has an extensive set of ant task for managing repositories and publishing artifacts. The eclipse IDE uses p2 to provision updates and install new plugins.

The Eclipse platform provides an installation and update mechanism called Eclipse p2 (short: p2). This update mechanism allows you to update Eclipse applications and to install new functionalities.

The update and installation of functionalities with p2 is based on feature projects (short: features) projects. It is possible to update complete products or individual features. In the terminology of p2 these features are installable units.

Related Links:

412 questions
10
votes
1 answer

Tycho downloads p2.indexes on every build

I'm building an RCP and several other plug-ins with Maven & Tycho. This works very fine, unless one issue: On every(!) build, Tycho loads all needed eclipse librarys, even when the where already downloaded 10 seconds ago. Aren't they saved…
Mirco
  • 2,940
  • 5
  • 34
  • 57
10
votes
2 answers

Can somebody explain the eclipse.p2.profile

I'm organizing a build of an Eclipse RCP. Using the p2-director, one property is the profile. The Eclipse documentation only states the below explanation, which isn't that clear in my view. -profile: the profile id containing the description of the…
Tobber
  • 7,211
  • 8
  • 33
  • 56
9
votes
2 answers

A working example of custom p2 provisioning action

I’m trying to write a custom p2 provisioning action to execute my own code when installing feature. Doing so with installHandler for Update Manager was easy, but as for p2, there’s absolutely no docs on this topic in the web, most of the time…
Niki Tonsky
  • 1,327
  • 11
  • 19
9
votes
3 answers

Tool for downloading eclipse plugins from update sites

I need to install an eclipse plugin to a machine not connected to the Internet and I cannot find a dist to use for a local install. Is there a tool for downloading a plugin from an update site and create a local installation archive (or a local…
mafro
  • 865
  • 1
  • 10
  • 11
8
votes
1 answer

P2 update of RCP based application fails

I trying to update an Eclipse-RCP-3.5 based application by an P2 update-site. The Application contains two features. Product is built by Eclipse Buckminster. Creation of the P2 update site is part of the product build. When start the update by menu:…
uı6ʎɹnɯ ꞁəıuɐp
  • 3,431
  • 3
  • 40
  • 49
8
votes
1 answer

In Equinox Is it possible to to mark an OSGi bundle as started from its containing feature's p2.inf?

I have an Eclipse feature which includes several bundles. I want to tell p2 to mark one of those bundles as started when the feature is installed. This is possible using the bundles own META-INF/p2.inf like so, instructions.configure =…
Miles Sabin
  • 23,015
  • 6
  • 61
  • 95
8
votes
2 answers

Where can I find the p2 repository specification?

I tried googling left and right, and couldn't find a specification for the p2 repository format that Eclipse is using. I am interested in reading p2 metadata (content.xml/jar and artifacts.xml/jar) and I'd like to know their grammar, the repository…
Iulian Dragos
  • 5,692
  • 23
  • 31
7
votes
1 answer

How to build Eclipse Plugin UpdateSite on headless server?

For the last few days I have been trying to test-build my eclipse plugin on a headless Debian VM. The reason for the headless Debian VM is that once I have the build setup, the build and the UpdateSite will be hosted on a remote server. What I have…
DodoFXP
  • 483
  • 2
  • 7
  • 11
7
votes
3 answers

Usage of Maven tycho-p2-plugin with SWT

How do I build an SWT application using the Eclipse P2 repository and the Maven tycho-p2-plugin?
msshapira
  • 257
  • 1
  • 4
  • 12
7
votes
2 answers

Best way to build update site for RCP app

I have an RCP app, consisting of: A main plugin A "framework" plugin A product definition file The product definition file lives in the main plug-in (is this a bad idea?). The product definition is based on "plug-ins", and has a dependency upon all…
geejay
  • 5,440
  • 8
  • 50
  • 60
7
votes
1 answer

How to make the PDE target definition editor show all plug-ins?

We aim at using Tycho+Eclipse PDE to build OSGi bundles in a distributed team. So far artifacts are built and deployed to a Nexus OSS repository. This has been augmented with p2 support, "artifacts.xml" and "content.xml" are generated (or…
jpullmann
  • 111
  • 1
  • 3
7
votes
1 answer

"Icon(s) not replaced" error when building product with Tycho

I'm using Tycho 0.16.0 and I'm getting the following error: Error - 7 icon(s) not replaced in C:\Users\weich01\AppData\Local\Temp\p2.brandingIron8219115442087687624\launcher.exe using C:\Development\Workspaces\Workspace RCP…
Jannik Weichert
  • 1,623
  • 16
  • 28
7
votes
2 answers

Define update sites in config.ini file

I'm creating a product based on Eclipse 3.6.2 for our project. The idea is to create an Eclipse installation that has all the plugins we require and all configuration are setup as we need them for the project. As part of that, I want to make sure…
Fredrik
  • 10,626
  • 6
  • 45
  • 81
7
votes
2 answers

Eclipse RCP built by Tycho includes unwanted optional dependencies

This is a question which has been frequently asked in the Tycho community: I migrated my Eclipse RCP build from [previous technology, e.g. eclipse-application/ PDE headless build / ...] to the new recommended way of building products with Tycho…
oberlies
  • 11,503
  • 4
  • 63
  • 110
6
votes
0 answers

Difference between P2 and P2 Update site in Nexus P2 proxy support

So I've installed nexus p2 plugin. It gives me two options when creating a proxy on a P2 Repository. P2 and P2 Update Site. What is the difference between the two and when should I use one over the other?
Michael Wiles
  • 20,902
  • 18
  • 71
  • 101
1
2
3
27 28