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
40
votes
2 answers

Tool for managing/hosting own p2 repositories?

Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product…
Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61
30
votes
7 answers

Eclipse doesn't load plugins in the dropins folder

I just downloaded Eclipse SDK 3.5.1 and want to install some add ons such as GEF, EMF, etc. I downloaded all the zip files for everything I needed and decided to install them in the dropins folder. I read…
rancidfishbreath
  • 3,944
  • 2
  • 30
  • 44
27
votes
2 answers

Is it possible to make an eclipse p2 provisioning mechanism running *locally*?

Eclipse 3.4[.x] - also known as Ganymede - comes with this new mechanism of provisioning called p2. "Provisioning" is the process allowing to discover and update on demand some parts of an application, as explained in general in this article on the…
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
19
votes
1 answer

What is a p2 repository?

I'm working on a project now for a few months where we use "p2-repositories". I know that I get my dependencies from them. But now I want do dive deeper into the subject and I wonder what exactly is a p2-repository - the definition. I think it has…
armin.miedl
  • 1,070
  • 1
  • 11
  • 16
15
votes
2 answers

What are ~/.m2 and ~/.p2 folders and can I delete them?

I know they are somehow linked to Eclipse and .m2 is related to maven. However, I never really used maven and I don't use it anymore, though I still use Eclipse, and these two folders ~/.p2 and ~./m2 are about 4Gb each and I'm wondering if I can…
alanwilter
  • 498
  • 1
  • 3
  • 20
14
votes
4 answers

How modify Eclipse locations to prevent write to user.home directory?

I have tried all different settings, and yes, I m aware of eclipse.ini and config.ini and also tried different command line arguments! Nothing solved my problem! All attempts and still each time I run eclipse.exe it wants write to my userhome i.e.…
MrSimpleMind
  • 7,890
  • 3
  • 40
  • 45
12
votes
1 answer

Combine/aggregate eclipse p2 repositories / extendable p2 repository

With maven/tycho build for Nodeclipse Eclipse plugin there is new p2 repository every release. Release is done on Bintray that does not allow to update files. So every version goes in its…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
11
votes
2 answers

Adding update site URLs to find third-party dependencies during install

I have an Eclipse feature which when installing on Helios requires an additional update-site URL to be present in order to find certain dependencies. Is it possible to automatically add such an URL so that the user doesn't have to do it manually? Or…
JesperE
  • 63,317
  • 21
  • 138
  • 197
11
votes
1 answer

Is it possible to resolve dependencies in maven plugin from p2 repo

I am developing one maven plugin which will be used to override the default maven lifecycles and will use my code instead. I have multiple jar dependencies (eclipse and my another application plugins) for the same. I have p2 repo for those jars. How…
Disha
  • 822
  • 1
  • 10
  • 39
11
votes
4 answers

Running P2 Ant tasks outside Eclipse

I got ant script running fine inside Eclipse Here is a piece of it :
Anthony Dahanne
  • 4,823
  • 2
  • 40
  • 39
11
votes
3 answers

Do you know update site addresses for *latest* eclipse components?

I am looking for all addresses related to: 3.x eclipse itself (milestones and/or integration builds) 3.x other components (GEF, GMF, EMF, ...) In the spirit of answering my own question, I do have an answer for: 3.5 eclipse itself, with some…
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
10
votes
1 answer

Maven Build gets Failed saying Could not assemble p2 repository: Mirroring failed: No repository found at

I have a maven build for building an eclipse plugin which gets hung sporadically during the execution of --- tycho-p2-repository-plugin:1.1.0:assemble-repository (default-assemble-repository) @ com.sample.product --- Otherwise the build will get…
Obuli Sundar
  • 566
  • 7
  • 26
10
votes
1 answer

Eclipse p2 : Difference between category.xml and site.xml

p2 repository creation ant tasks like eclipse.publish.featuresAndBundles seem to take a site.xml or category.xml file which specifies the category information. I see that the contents of site.xml and category.xml that eclipse generates are exactly…
pdeva
  • 43,605
  • 46
  • 133
  • 171
10
votes
3 answers

Building an Eclipse plugin using Maven

I am trying to configure Maven to build an Eclipse application (Eclipse plugin packaged with all of the Eclipse EXEs etc). I have already Mavenised dozens of dependencies of the project and deployed them to our internal Nexus (OSS) server. I have…
Nicholas Albion
  • 3,096
  • 7
  • 33
  • 56
10
votes
3 answers

Can Eclipse 3.5 discover all bundles in the plugins dir?

Simple usecase: assemble an Eclipse product using simple scripts, just dumping bundles into the plugins dir. This used to work with 3.3 - with 3.5 it's broken: my application doesn't start as the app plugin is not found. Question: what's the…
inger
  • 19,574
  • 9
  • 49
  • 54
1
2 3
27 28