Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321901 - Export product with metadata fails bc p2 metatada contains wrong information
Summary: Export product with metadata fails bc p2 metatada contains wrong information
Status: CLOSED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.5.2   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 12:46 EDT by Laurent Marchal CLA
Modified: 2010-10-15 17:23 EDT (History)
2 users (show)

See Also:


Attachments
Buil error (44.55 KB, image/png)
2010-08-05 12:47 EDT, Laurent Marchal CLA
no flags Details
P2 repository analyse with agent (151.76 KB, image/png)
2010-08-05 12:47 EDT, Laurent Marchal CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.