Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 389983

Summary: manually created source feature FAILURE
Product: [Technology] CBI Reporter: Paul Webster <pwebster>
Component: build helpAssignee: CBI Inbox <cbi-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: benjamin.schwertfeger, igor, thanh.ha
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 389985    
Bug Blocks: 386884    
Attachments:
Description Flags
mvn -X output for Building org.eclipse.platform.source.
none
integration test to demonstrate the problem none

Description Paul Webster CLA 2012-09-20 05:33:36 EDT
Created attachment 221287 [details]
mvn -X output for Building org.eclipse.platform.source.

While trying to build org.eclipse.platform.source it fails during the aggregator build with:

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0-SNAPSHOT:build-qualifier-aggregator failed: Feature /home/paul/git-storage/git/cbi/r4/eclipse.platform.releng.aggregator/eclipse.platform.releng/features/org.eclipse.rcp with id org.eclipse.rcp is not part of the project build target platform

In the -X output, it includes this just before it gives the failure summary:

/eclipse.platform.releng.tychoeclipsebuilder/org.eclipse.platform.source
[DEBUG]   (f) execution = org.eclipse.tycho:tycho-packaging-plugin:0.16.0-SNAPSHOT:build-qualifier-aggregator {execution: default-build-qualifier-aggregator}
[DEBUG]   (s) format = 'v'yyyyMMdd-HHmm
[DEBUG]   (f) packaging = eclipse-feature
[DEBUG]   (f) project = MavenProject: org.eclipse.platform-feature:org.eclipse.platform.source:4.2.1-SNAPSHOT @ /home/paul/git-storage/git/cbi/r4/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/org.eclipse.platform.source/pom.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@35213521
[DEBUG]   (f) timestampProvider = jgit
[DEBUG] -- end configuration --
[DEBUG] Could not parse qualifier timestamp v201205102330
Comment 2 Paul Webster CLA 2012-09-20 05:39:09 EDT
The feature.xml it's trying to create contains 3rd party orbit plugins, like:

        <plugin id="com.jcraft.jsch.source" version="0.1.46.v201205102330"     unpack="false"/>

Maybe tycho is failing on that.

PW
Comment 3 Paul Webster CLA 2012-09-20 13:49:04 EDT
I removed the jsch plugin with the qualifier it didn't like.  It still fails with the message:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0-SNAPSHOT:build-qualifier-aggregator (default-build-qualifier-aggregator) on project org.eclipse.platform.source: Execution default-build-qualifier-aggregator of goal org.eclipse.tycho:tycho-packaging-plugin:0.16.0-SNAPSHOT:build-qualifier-aggregator failed: Feature /opt/pwebster/git/cbi/r4/eclipse.platform.releng.aggregator/eclipse.platform.releng/features/org.eclipse.rcp with id org.eclipse.rcp is not part of the project build target platform -> [Help 1]

Our feature.xml also has 2 feature includes:


        <includes id="org.eclipse.rcp.source" version="0.0.0"/>
        <includes id="org.eclipse.equinox.p2.user.ui.source" version="0.0.0" optional="true"/>

It appears to be failing on that.

PW
Comment 4 Igor Fedorenko CLA 2012-09-24 08:03:00 EDT
Created attachment 221406 [details]
integration test to demonstrate the problem

I've attached a small/standalone project that shows the problem. The problem has to do with including source features in other features and update sites. This currently does not work and there is no easy way to make this work due to the way tycho calculates project dependencies. See bug 353889 and comment in source feature metadata provider [1] for more info.
Comment 6 Paul Webster CLA 2012-10-24 11:34:46 EDT
Thanh, did we remove the manual source features in the end?  So this isn't holding up our build transition?

PW
Comment 7 Thanh Ha CLA 2012-10-24 18:06:23 EDT
(In reply to comment #6)
> Thanh, did we remove the manual source features in the end?  So this isn't
> holding up our build transition?
> 
> PW

Correct we use the automatic generation now and the manual ones were reverted.
Comment 8 Paul Webster CLA 2013-01-07 15:02:40 EST
We don't have a usecase for this any more.

PW