Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Building patched feature from updatesite

To clarify my situation, the scenario is as follows:

* An updatesite (in my case http://localhost/core/release/R2_1_0) already exists and contains the feature myplatform.core.feature at version 2.1.0.CR2_1_0
* A new maven project uses this updatesite along with a set of changed plugins to build a patched feature of myplatform.core.feature.
* The patched feature shall be published on a new updatesite (i.e. http://localhost/core/delta-release/R2_1_1) which can be referenced by other projects again.

The goal is to have a delta feature containing only the changed plugins of my latest stable core release.
Newer projects can use both updatesites afterwards to access the latest changed plugins as well.

For test purposes I've created an equivalent test example (building an empty patch feature of org.eclipse.pde at version 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0) running into the same troubles.
Obviously, it's possible to build the patched feature, but the updatesite (core.delta.repository) fails. There is a requirement to the org.eclipse.pde of version 0.0.0 (I expected 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0 as assigned in my patched feature.xml). The output of my '/core.delta> mvn clean package' can be found in stdout.txt.

Regards, 
Toni

-----Ursprüngliche Nachricht-----
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Igor Fedorenko
Gesendet: Mittwoch, 04. Juli 2012 13:30
An: tycho-user@xxxxxxxxxxx
Betreff: Re: [tycho-user] Building patched feature from updatesite

I never had the chance to investigate this, but it is not possible to include both a patch feature and the feature being patch in the same repository [1]. Building patch feature itself should "just work". If this does not work for you, we'll need a small standalone example project to help you troubleshoot the problem.


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=376925

--
Regards,
Igor

On 12-07-03 3:53 PM, Antonio Rella wrote:
> Hello
>
> I like to create an updatesite containing a feature patch with 
> tycho/maven. I have an own updatesite containing the feature to patch.
> However, it tells me the feature I'd like to patch could not be found 
> when building a new updatesite:
>
> [INFO] Building core.delta.repository 1.0.0-SNAPSHOT
>
> [INFO]
> ----------------------------------------------------------------------
> --
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ 
> core.delta.repository ---
>
> [INFO] Deleting
> X:\plattform\coredelta\myplatform.core.delta.updatesite\target
>
> [INFO]
>
> [INFO] --- tycho-packaging-plugin:0.15.0:build-qualifier
> (default-build-qualifier) @ core.delta.repository ---
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean-1) @ 
> core.delta.repository ---
>
> [INFO]
>
> [INFO] --- tycho-p2-publisher-plugin:0.15.0:publish-products
> (default-publish-products) @ core.delta.repository ---
>
> [INFO] Cannot complete the request.  Generating details.
>
> [INFO] Cannot complete the request.  Generating details.
>
> [INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86, 
> org.eclipse.update.install.features=true}
>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR]   Software being installed: core.delta.repository
> raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT
>
> [ERROR]   Missing requirement:
> myplatform.core.delta.feature.feature.group 1.0.0.201207021008 
> <tel:1.0.0.201207021008>requires 
> 'myplatform.core.feature.feature.group
> 0.0.0' but it could not be found
>
> [ERROR]   Cannot satisfy dependency: core.delta.repository
> raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT 
> depends
> on: myplatform.core.delta.feature.feature.group [1.0.0,1.0.1)
>
> [ERROR]
>
> My patch feature requires the feature to patch in version 2.1.0.  How 
> can I download the feature to patch from my updatesite automatically 
> (without installation) so it can be found?
>
> I've added the updatesite to my repositories in parent pom.xml:
>
> ---snip---
>
> <repositories>
>
> <repository>
>
> <id>indigo</id>
>
> <url><http://download.eclipse.org/releases/indigo%3C/url%3E><http://do
> wnload.eclipse.org/releases/indigo>http://download.eclipse.org/release
> s/indigo</ <http://download.eclipse.org/releases/indigo%3C/url%3E>url
> <http://download.eclipse.org/releases/indigo%3C/url%3E>>
> <http://download.eclipse.org/releases/indigo%3C/url%3E>
>
> <layout>p2</layout>
>
> </repository>
>
> <repository>
>
> <id>mycore</id>
>
> <layout>p2</layout>
>
> <url>${core.url}</url>
>
> </repository>
>
> </repositories>
>
> <properties>
>
> <tycho-version>0.15.0</tycho-version>
>
> <core.url><http://localhost/core/release/R2_1_0/><http://localhost/cor
> e/release/R2_1_0/>http://localhost/core/release/R2_1_0/</ core.url>
>
> </properties>
>
> ---snap---
>
> Best regards,
>
> Toni
>
>
>
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

Attachment: deltatest.zip
Description: deltatest.zip

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top