tycho icon indicating copy to clipboard operation
tycho copied to clipboard

Unable to build eclipse application repository or site with patch features

Open GorakhSaste opened this issue 1 year ago • 4 comments

This issue is based on https://bugs.eclipse.org/bugs/show_bug.cgi?id=389698

The feature patches are required to introduce new features, since to support the specific plugins to provide customers with the feature patches. unable to create the patch repository for patch feature using maven tycho.

I have created the sample application to reproduce this issue. (attached tycho-patch-feature-example.zip) In this sample application, com.example.tycho.feature.patch contains feature.xml which will contain below code is added. <import feature="com.example.tycho.feature" version="1.0.0.qualifier" patch="true"/>

tycho-patch-feature-example.zip

Patch feature is built with maven Tycho, but while create site with com.example.tycho.update.patch for the patch feature then below errors getting.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:4.0.6:assemble-repository (default-assemble-repository) on project com.example.tycho.update.patch.eclipse-repository: Cannot resolve dependencies of project com.example.tycho:com.example.tycho.update.patch.eclipse-repository:eclipse-repository:1.0.0-SNAPSHOT
[ERROR]  with context {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86_64, org.eclipse.update.install.sources=true}
[ERROR]   Software being installed: com.example.tycho.update.patch.eclipse-repository raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT
[ERROR]   Missing requirement: com.example.tycho.feature.patch.feature.group 1.0.0.202405090622 requires 'org.eclipse.equinox.p2.iu; com.example.tycho.feature.feature.group [1.0.0.qualifier,1.0.0.qualifier]' but it could not be found
[ERROR]   Cannot satisfy dependency: com.example.tycho.update.patch.eclipse-repository raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT depends on: org.eclipse.equinox.p2.iu; com.example.tycho.feature.patch.feature.group [1.0.0,1.0.1): See log for details
[ERROR] -> [Help 1]

Our Project needs a patch feature mechanism support. Please consider providing support for feature patching.

GorakhSaste avatar May 09 '24 10:05 GorakhSaste

Greatly appreciate, if anyone could help and share the support. Thanks.

GorakhSaste avatar May 15 '24 13:05 GorakhSaste

If it is crucial to your business you can find dedicated support options for Tycho here: https://github.com/eclipse-tycho/tycho#getting-support

laeubi avatar May 15 '24 14:05 laeubi

I need to understand that, latest Maven Tycho is support for the build eclipse application repository or site with patch features or not.

GorakhSaste avatar May 20 '24 16:05 GorakhSaste

duplicate of #893

eric-milles avatar Dec 16 '24 17:12 eric-milles