Discussion:
[tycho-dev] Is it possible to generate the artifact.xml and content.xml without using tycho plugin
Kasun Siyambalapitiya
2017-07-17 11:17:12 UTC
Permalink
Hi all,

I am searching for a way to generate the *"artifact.xml"* and the
*"content.xml"* manually without using the *tycho-plugin*. Currently I have
all the OSGi bundles and the features(with all the dependant bundles) to be
installed in to the p2-repo in a seperate location. By looking at the
content of the *"artifact.xml"* and *"content.xml" * files, I observed that
they contain most of the meta data available in the existing bundles and
features plus few additional meta data. Is it possible to generate the
above two files without using the "Tycho plugin".

Thank you


*Regards,*

*Kasun Siyambalapitiya*
*Software Engineer*
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
Tel : 0715523466
E mail : ***@wso2.com
<https://wso2.com/signature>
Justin Georgeson
2017-07-17 13:55:00 UTC
Permalink
You could use the PDE application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher [1]. If you're already using Maven I think your two best options for that though are Tycho Extras plugins: tycho-eclipserun:eclipse-run [2] or tycho-p2-extras:publish-features-and-bundles [3]. I recommend #3.

In all three cases if you have the all the IUs laid out in the proper folder structure ahead of time then disable the publishArtifacts behavior so that it just generates the metadata in the specified locations.

[1] https://wiki.eclipse.org/Equinox/p2/Publisher#Features_And_Bundles_Publisher_Application
[2] https://eclipse.org/tycho/sitedocs-extras/tycho-eclipserun-plugin/plugin-info.html
[3] https://eclipse.org/tycho/sitedocs-extras/tycho-p2-extras-plugin/publish-features-and-bundles-mojo.html

From: tycho-dev-***@eclipse.org [mailto:tycho-dev-***@eclipse.org] On Behalf Of Kasun Siyambalapitiya
Sent: Monday, July 17, 2017 6:17 AM
To: tycho-***@eclipse.org
Subject: [EXTERNAL] [tycho-dev] Is it possible to generate the artifact.xml and content.xml without using tycho plugin

External Sender: Use caution with links/attachments.

Hi all,

I am searching for a way to generate the "artifact.xml" and the "content.xml" manually without using the tycho-plugin. Currently I have all the OSGi bundles and the features(with all the dependant bundles) to be installed in to the p2-repo in a seperate location. By looking at the content of the "artifact.xml" and "content.xml" files, I observed that they contain most of the meta data available in the existing bundles and features plus few additional meta data. Is it possible to generate the above two files without using the "Tycho plugin".

Thank you


Regards,
Kasun Siyambalapitiya
Software Engineer
WSO2 Inc. - http://wso2.com/<https://urldefense.proofpoint.com/v2/url?u=http-3A__wso2.com_&d=DwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=IaG729QyGh1osYCbh8OX9axItHyepxef_hVPx52Ly1s&m=FlSnj8t9a42dZT8QfuUSm_z1LcqPnfM8RhcNb3VF7i8&s=3nSOnxJfv5P9Bkm7e_lJbkkN4-UZ9jQEsyFXQDjozfs&e=>
lean . enterprise . middleware
Tel : 0715523466
E mail : ***@wso2.com<mailto:***@wso2.com>
[Loading Image...]<https://urldefense.proofpoint.com/v2/url?u=https-3A__wso2.com_signature&d=DwMFaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=IaG729QyGh1osYCbh8OX9axItHyepxef_hVPx52Ly1s&m=FlSnj8t9a42dZT8QfuUSm_z1LcqPnfM8RhcNb3VF7i8&s=BKs6G6HLEm7879xqUv4S_Omms2ow45JjieVlOQS3aO4&e=>

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
Mykola Nikishov
2017-07-17 18:26:45 UTC
Permalink
Post by Justin Georgeson
Is it possible to generate the above two files without using the
"Tycho plugin".
Sure, check either on-line [1] or built-in Eclipse Help:

Platform Plug-in Developer Guide
- Programmer's Guide
-- Provisioning platform, p2
--- Metadata management

[1] http://help.eclipse.org/oxygen/topic/org.eclipse.platform.doc.isv/guide/p2_metadata.html
--
Mykola
https://manandbytes.github.io/
Loading...