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
6
votes
3 answers

How to create a p2 repository from an existing osgi bundle?

I try to use my legacy code in my Eclipe-RCP Application. I took all my old maven projects with dependencies and used the maven-bundle-plugin to create an osgi bundle. Now i have everything wrapped up in a new osgi jar. How to create a p2 update…
uti.devel
  • 356
  • 6
  • 17
6
votes
3 answers

Programatically installing an Eclipse plugin from within Eclipse?

I want to create an automated installer for an Eclipse plugin (i.e. not through the "Update Manager"). My scenario is simple: the user closes Eclipse, drops a downloaded JAR into the dropins folder, starts Eclipse and the rest of the process is…
zvikico
  • 9,765
  • 4
  • 38
  • 49
6
votes
4 answers

Eclipse does not download latest jar of the same version from the target platform

I have a strange problem in our Eclipse IDE (Indigo V3.7.2). We use a target platform hosted on a server which is a p2 repository built using the b3 aggregation process. We get certain components and features from a different team. Every time they…
ezcode
  • 271
  • 4
  • 14
6
votes
2 answers

How to find list of installed Eclipse features from external program?

I am preparing windows installer for my Eclipse plugin. I want install it into target eclipse product using P2 director. I am targetting only Eclipse 3.5 for now. Installer should check that prerequisite features/plugins are already installed. I am…
Peter Štibraný
  • 32,463
  • 16
  • 90
  • 116
6
votes
3 answers

How do I build an Eclipse RCP app so that its features can be updated automatically?

I am building an RCP application that will be made up of several Features. My RCP application is configured to check for updates each time it starts. My current problem is that I need one of my Features to be 'Installed' at build time so that it…
twindham
  • 930
  • 9
  • 31
5
votes
1 answer

Generate HTML from Eclipse update site

I'd like to generate a HTML file that takes its content from an Eclipse update site. Ideally it should output organize the content based on categories and include the descriptions somehow. Input: Eclipse Update Site ??? Profit!! (HTML page) I'm…
Fredrik
  • 10,626
  • 6
  • 45
  • 81
5
votes
1 answer

How to apply "air" friction in a Phaser P2 Body?

How to apply a friction in a Phaser.P2.body? In a Air-Hockey phaser based game. How to "turn-off the air-flow" from hockey table ?, In this example: http://jsfiddle.net/ywzmkso3/32/ // Initialize Phaser, and creates a 400x490px game var game = new…
Filipe Tagliacozzi
  • 1,431
  • 2
  • 20
  • 28
5
votes
3 answers

why is my eclipse RCP product locked and can't be updated?

I am building an Eclipse RCP-based product, and I am running into an issue where when I try to use the built-in p2 UI to install updates to the product, I get an error message in the dialog that "Insufficient access privileges to apply this…
SteveDonie
  • 8,700
  • 3
  • 43
  • 43
5
votes
0 answers

Is there a (official) p2 repository for the Google Guava library?

I've used the Google Guava library for a half year now inside some small Eclipse RCP applications. Until now it's worked well with the older versions of Guava 11/12 provided inside the Eclipse Orbit p2 repositories. In a new project I need to use…
5
votes
1 answer

Eclipse Plugin Development: Is there a way to control installer messages about missing dependencies of my plugin?

I am developing an eclipse plugin which depends on Eclipse platform 4.2 (Juno) and cannot be installed on older versions of eclipse. When the user tries to install my plugin (via update site) on an old eclipse, the Eclipse installer stops him and…
Yotam Madem
  • 375
  • 2
  • 12
5
votes
2 answers

How to change the qualifier in the file names of plugins and features

I am trying to rename my artifacts in the repository folder of my eclipse-repository module. At the moment they are auto generated like ...1.0.0.v20130315-1927.jar. I haven't found any configuration parameter that works. I have tried to use the…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
5
votes
2 answers

Mac distribution of Eclipse RCP application built with Tycho on Windows doesn't start

I have built an Eclipse RCP application (Indigo) with Tycho. The build is run on a Win 7, 64-bit machine. The parent POM includes: org.eclipse.tycho target-platform-configuration
s.d
  • 4,017
  • 5
  • 35
  • 65
5
votes
3 answers

RCP p2 updating: Only one of the following can be installed at once

I created an RCP application that enables p2. The ui is added and updatesites can be added as well. But adding new software (which is already installed), this happens: Your original request has been modified. "Help" is already installed, so an…
Arninja
  • 735
  • 1
  • 12
  • 24
5
votes
2 answers

How to validate an upgrade before installation

We have an eclipse feature that is licensed and the license is handled by our own code. The user can go in on our update-site and upgrade his feature. The problem we face is when the user's license needs to be updated before he can use the new…
giZm0
  • 1,481
  • 21
  • 37
4
votes
1 answer

Solution for building an offline "composite" Eclipse update site with categories

This is going to be a pretty long question, so bear with me. I'm looking for a solution to build custom update sites (or p2 repositories) for use in an offline development environment, with the following things in mind: Each site will contain a mix…
takteek
  • 7,020
  • 2
  • 39
  • 70
1 2
3
27 28