You are correct. That was a problem. I have built this more than a few times and I made a mistake on that build. However I am still having problems and I will have to see if I can sort it out.
Here is the requires that is in pluginA.feature
<requires><import feature="com.test.pluginArB.feature" version="1.0.0.qualifier" match="equivalent"/></requires>
This was created just by using the wizard. So looking at the error message in p2 UI it appears that the qualifier did not get replaced.
Cannot complete the install because one or more required items could not be found.
Software being installed: com.test.pluginA.feature.feature.group 1.0.0.200903181107
Missing requirement: com.test.pluginA.feature.feature.group 1.0.0.200903181107 requires 'com.test.pluginArB.feature.feature.group [1.0.0.qualifier,1.1.0)' but it could not be found
So is it possible that 1.0.0.qualifier is > 1.0.0.200903181107? Removing the qualifier in the requires fixes the problem.
I guess I am reaching the point where the update site wizard is more trouble than it is worth. It just seems to require more manual tweaking one would expect. https://bugs.eclipse.org/bugs/show_bug.cgi?id=267976
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=267953
To summarize
- I need to use the qualifier to avoid the md5 problem. But even then I must not rebuild within the same minute timestamp.
- If I use the qualifier and drop a dependency in the wizard I need to manually remove the qualifier. But that might not be correct either. Maybe I don't want to use an earlier timestamp.
- Or if I don't use the qualifier then I need to cleanup my site before I build.
I didn't see this problem with the earlier SDK because I wasn't using the qualifier then.
This seems like a bad tool to me.
Thomas Hallgren ---03/18/2009 04:45:36 AM---Hi James,
From: |
Thomas Hallgren <thomas@xxxxxxx> |
To: |
P2 developer discussions <p2-dev@xxxxxxxxxxx> |
Date: |
03/18/2009 04:45 AM |
Subject: |
Re: [p2-dev] Regression? |
Hi James,
The attached content.jar does not include any IU's for the com.test.pArB.feature. Instead, I find a feature with the name com.test.pluginArB.feature.
Could there be something wrong with your build?
Regards,
Thomas Hallgren
James D Miles wrote:
(See attached file: content.jar)
and this is the jar available com.test.pluginArB.feature_1.0.0.200903171644.jar
Thomas Hallgren ---03/17/2009 05:29:30 PM---Hi James,
Hi James,
The translation from 1.0.0 equivalent used in the feature.xml to the range [1.0.0,1.1.0) seems correct. Can you see what version (if any) of com.test.pAarB.feature that is available when the install fails?
Regards,
Thomas Hallgren
James D Miles wrote:
I am working with M6 and I am seeing the following error
Cannot complete the install because one or more required items could not be found.
Software being installed: com.test.pluginA.feature.feature.group 1.0.0.200903171644
Missing requirement: com.test.pluginA.feature.feature.group 1.0.0.200903171644 requires 'com.test.pArB.feature.feature.group [1.0.0,1.1.0)' but it could not be found
If I use a site I generated with a prior SDK build it works.
This is a simple feature requires for featureA
- <requires> <import feature="com.test.pArB.feature" version="1.0.0" match="equivalent" /> </requires>
Is there a bug for this?
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
|