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

Bug 321901

Summary: Export product with metadata fails bc p2 metatada contains wrong information
Product: [Eclipse Project] PDE Reporter: Laurent Marchal <lmarchal>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: aniefer, pwebster
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Buil error
none
P2 repository analyse with agent none

Description Laurent Marchal CLA 2010-08-05 12:46:05 EDT
Build Identifier: 20100218-1602

Using Helios, I can not export a feature based product because when generating the metadata p2 add a requirement to a feature with .qualifier instead of replacing the value with the version.

Error :

Cannot complete the install because one or more required items could not be found.
 Software being installed: (com.sma.ui.em.product 5.0.0.201008041409)
 Missing requirement: (com.sma.ui.em.product 5.0.0.201008041409) requires 'com.sma.feature.enterprisemanager.feature.group [1.0.0.qualifier]' but it could not be found 

Please see screenshot of the generated p2 repository analysed with the agent.

Reproducible: Always

Steps to Reproduce:
1. Create a product based on features.
2. Add a main feature that includes other features
3. build from eclipse
Comment 1 Laurent Marchal CLA 2010-08-05 12:47:00 EDT
Created attachment 175959 [details]
Buil error
Comment 2 Laurent Marchal CLA 2010-08-05 12:47:56 EDT
Created attachment 175960 [details]
P2 repository analyse with agent
Comment 3 Andrew Niefer CLA 2010-08-25 16:34:56 EDT
Please try with Helios (3.6), this is working for me.
Comment 4 Laurent Marchal CLA 2010-08-25 17:19:56 EDT
My problem occurs with Helios. Since eclipse 3.3 everything works fine. I was working with 3.5.2 and this problems happens since I am using 3.6.

I tried again today with the latest stable Helios release :

Cannot complete the install because one or more required items could not be found.
 Software being installed: Product 5.0.0.201008251612 (com.sma.ui.em.product 5.0.0.201008251612)
 Missing requirement: Product 5.0.0.201008251612 (com.sma.ui.em.product 5.0.0.201008251612) requires 'com.sma.feature.enterprisemanager.feature.group [1.0.0.qualifier]' but it could not be found

What information do you need ?
Comment 5 Laurent Marchal CLA 2010-08-25 17:22:44 EDT
More details : I have a product based on features.

The product include a top level feature.
The feature top level feature includes some plugins, and 4 other features (from my project) + the org.eclipse.rcp feature.
Comment 6 Laurent Marchal CLA 2010-08-25 17:26:15 EDT
Also I don't know if it can be related but now when I export the product, I have need to "Allow binary cycles" because I have a cycle that was not present in the previous eclipse releases 3.5.x.

A cycle was detected when generating the classpath com.sma.ui.report.reportviewer_1.0.0.201008251623, org.eclipse.birt.report.viewer_2.6.0.v20100605, org.eclipse.equinox.http.jetty_2.0.0.v20100503, org.mortbay.jetty.util_6.1.23.v201004211559, org.slf4j.api_1.5.11.v20100519-1910, ch.qos.logback.classic_0.9.19.v20100519-1505, ch.qos.logback.core_0.9.19.v20100419-1216, org.slf4j.api_1.5.11.v20100519-1910.
Comment 7 Andrew Niefer CLA 2010-08-25 17:38:23 EDT
(In reply to comment #5)
> More details : I have a product based on features.
> 
> The product include a top level feature.
> The feature top level feature includes some plugins, and 4 other features (from
> my project) + the org.eclipse.rcp feature.

Is "com.sma.feature.enterprisemanager" the top level feature here?
Comment 8 Laurent Marchal CLA 2010-08-25 18:32:20 EDT
yes com.sma.feature.enterprisemanager is the top level feature.
Comment 9 Laurent Marchal CLA 2010-10-15 17:22:58 EDT
I downloaded SR1 and it works. I don't know what happened, but I can close this bug. Thanks.