Two Eclipse p2 repository operations to make you happy
On the integrations side of the Eclipse business I often happen to need two things: 1. add a random OSGi jar to repository 2. copy from one repository to another Looking thru p2 manual it's not always entirely obvious how to do it, so here goes my take on the subject. All my automation uses Ant, so I'll speak a bit of Ant now: 1. Add a random OSGi jar to repository <p2.publish.featuresAndBundles repository="file:/path/to/destination/repository" e.g. ${buildDirectory}/repo publishArtifacts="true" compress="true" append="true" source="/absolute/path/to/folder/with/jar" /> Few notes: 1. source attribute must be an absolute path. 2. source path must contain "features" and "plugins" directories. So if you have only one bundle, make sure to put it under plugins dir first. 3. make sure repository attribute is a URL, not plain path 2. Copy from one repository to another <p2.mirror verbose=&quo