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


i try use legacy code in eclipe-rcp application. took old maven projects dependencies , used maven-bundle-plugin create osgi bundle.

now have wrapped in new osgi jar.

how create p2 update site osgi jar use tycho , eclipse target platform?

i tried: https://docs.sonatype.org/display/tycho/how+to+make+existing+osgi+bundles+consumable+by+tycho

if put resulting files on web server eclipse not recognizing "software site".

how create p2 software site existing osgi bundles without using eclipse ui, process has run in background on build-server.

is there way use maven (tycho)/ gradle automatically create p2 update site existing osgi bundle?

i use these 2 commands generate p2 repository:

java -jar %eclipse_home%\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -application org.eclipse.equinox.p2.publisher.featuresandbundlespublisher -metadatarepository file:/c:/repository -artifactrepository file:/c:/destination -source /c:/source -configs gtk.linux.x86 -compress -publishartifacts 

where c:/source stored bundles, , then

%eclipse_home%/eclipse -debug -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.categorypublisher -metadatarepository file:c:/destination -categorydefinition file:c:/source/category.xml 

the c:/source tree this

source  -- feaures  -- plugins  -- category.xml 

and you'll need category.xml file group bundles categories. category's content

<?xml version="1.0" encoding="utf-8"?> <site>    <category-def name="all" label="p2 repo"/>    <iu>       <category name="all"/>       <query><expression type="match">providedcapabilities.exists(p | p.namespace == 'osgi.bundle')</expression></query>    </iu> </site> 

depending on eclipse version, maybe you'll need change version of file org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -