Home » Eclipse Projects » Equinox » Using p2 to install a product
Using p2 to install a product [message #110581] |
Fri, 23 May 2008 14:40  |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Hi everyone,
I am just playing around with some more p2 stuff (I hope to write a
short blog on how to install things with the agent). I am trying to
install a full product using the agent. Am I doing something wrong, or
does this sound like a bug: (I am using 3.4Rc1)
1. Create a Plug-in Project, and select "Create RCP Application".
(com.example.rcp)
2. Choose a template (RCP Application with a view)
3. Launch it to test
4. Create a product configuration (From a launch configuration)
5. Create a new ID (Use the application)
6. Synchronize and Launch to test
7. Use the export wizard (Select generate metadata repository)
8. Go to the exported directory and launch to test
9. Launch the p2 Agent
10. Add the repository as both an artifact repo and metadata repo
11. Create a profile
12. Drag the Example product to the profile
I get an error:
Items will be ignored.
Unsatisfied dependency: [com.example.rcp.product 0.0.0]
requiredCapability:
toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
Unsatisfied dependency: [com.example.rcp.product 0.0.0]
requiredCapability:
toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
Unsatisfied dependency: [com.example.rcp.product 0.0.0]
requiredCapability:
toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
Unsatisfied dependency: [com.example.rcp.product 0.0.0]
requiredCapability:
toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
|
|
|
Re: Using p2 to install a product [message #110631 is a reply to message #110581] |
Fri, 23 May 2008 17:31   |
Eclipse User |
|
|
|
Ian,
There was a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=232584
about the missing product.ini capability. The fix is in RC2, a work
around would be to add some launching arguments to your .product file.
(There were no arguments for the .ini file, so no IU was generated to
contain them, but the requirement for that IU still existed).
I have not seen the missing requirement for
com.example.rcp.product.launcher. Try the recent I20080523-0100 build
(which may end up being RC2). If it still happens and you have a
project whose export results in a repo with this missing requirement,
please open a new bug with it.
I just tried your steps below and it worked for me.
-Andrew
Ian Bull wrote:
> Hi everyone,
>
> I am just playing around with some more p2 stuff (I hope to write a
> short blog on how to install things with the agent). I am trying to
> install a full product using the agent. Am I doing something wrong, or
> does this sound like a bug: (I am using 3.4Rc1)
>
>
> 1. Create a Plug-in Project, and select "Create RCP Application".
> (com.example.rcp)
> 2. Choose a template (RCP Application with a view)
> 3. Launch it to test
> 4. Create a product configuration (From a launch configuration)
> 5. Create a new ID (Use the application)
> 6. Synchronize and Launch to test
> 7. Use the export wizard (Select generate metadata repository)
> 8. Go to the exported directory and launch to test
> 9. Launch the p2 Agent
> 10. Add the repository as both an artifact repo and metadata repo
> 11. Create a profile
> 12. Drag the Example product to the profile
>
>
> I get an error:
> Items will be ignored.
> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
> requiredCapability:
> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>
> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
> requiredCapability:
> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
> requiredCapability:
> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>
> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
> requiredCapability:
> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
|
|
|
Re: Using p2 to install a product [message #110644 is a reply to message #110631] |
Sat, 24 May 2008 01:30   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
I grabbed I20080523-0100 and I still had the problem. But I think I
figured it out: I didn't assign a version to my product. After this, it
seems to work.
Thanks Andrew,
- Ian
Andrew Niefer wrote:
> Ian,
> There was a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=232584
> about the missing product.ini capability. The fix is in RC2, a work
> around would be to add some launching arguments to your .product file.
>
> (There were no arguments for the .ini file, so no IU was generated to
> contain them, but the requirement for that IU still existed).
>
>
> I have not seen the missing requirement for
> com.example.rcp.product.launcher. Try the recent I20080523-0100 build
> (which may end up being RC2). If it still happens and you have a
> project whose export results in a repo with this missing requirement,
> please open a new bug with it.
>
> I just tried your steps below and it worked for me.
>
> -Andrew
>
> Ian Bull wrote:
>> Hi everyone,
>>
>> I am just playing around with some more p2 stuff (I hope to write a
>> short blog on how to install things with the agent). I am trying to
>> install a full product using the agent. Am I doing something wrong,
>> or does this sound like a bug: (I am using 3.4Rc1)
>>
>>
>> 1. Create a Plug-in Project, and select "Create RCP Application".
>> (com.example.rcp)
>> 2. Choose a template (RCP Application with a view)
>> 3. Launch it to test
>> 4. Create a product configuration (From a launch configuration)
>> 5. Create a new ID (Use the application)
>> 6. Synchronize and Launch to test
>> 7. Use the export wizard (Select generate metadata repository)
>> 8. Go to the exported directory and launch to test
>> 9. Launch the p2 Agent
>> 10. Add the repository as both an artifact repo and metadata repo
>> 11. Create a profile
>> 12. Drag the Example product to the profile
>>
>>
>> I get an error:
>> Items will be ignored.
>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>> requiredCapability:
>> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>>
>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>> requiredCapability:
>> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>> requiredCapability:
>> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>>
>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>> requiredCapability:
>> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
|
|
|
Re: Using p2 to install a product [message #110785 is a reply to message #110644] |
Tue, 27 May 2008 11:49  |
Eclipse User |
|
|
|
For completeness, the bug raised by Ian is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=233816
-Andrew
Ian Bull wrote:
> I grabbed I20080523-0100 and I still had the problem. But I think I
> figured it out: I didn't assign a version to my product. After this, it
> seems to work.
>
> Thanks Andrew,
>
> - Ian
>
> Andrew Niefer wrote:
>> Ian,
>> There was a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=232584
>> about the missing product.ini capability. The fix is in RC2, a work
>> around would be to add some launching arguments to your .product file.
>>
>> (There were no arguments for the .ini file, so no IU was generated to
>> contain them, but the requirement for that IU still existed).
>>
>>
>> I have not seen the missing requirement for
>> com.example.rcp.product.launcher. Try the recent I20080523-0100 build
>> (which may end up being RC2). If it still happens and you have a
>> project whose export results in a repo with this missing requirement,
>> please open a new bug with it.
>>
>> I just tried your steps below and it worked for me.
>>
>> -Andrew
>>
>> Ian Bull wrote:
>>> Hi everyone,
>>>
>>> I am just playing around with some more p2 stuff (I hope to write a
>>> short blog on how to install things with the agent). I am trying to
>>> install a full product using the agent. Am I doing something wrong,
>>> or does this sound like a bug: (I am using 3.4Rc1)
>>>
>>>
>>> 1. Create a Plug-in Project, and select "Create RCP Application".
>>> (com.example.rcp)
>>> 2. Choose a template (RCP Application with a view)
>>> 3. Launch it to test
>>> 4. Create a product configuration (From a launch configuration)
>>> 5. Create a new ID (Use the application)
>>> 6. Synchronize and Launch to test
>>> 7. Use the export wizard (Select generate metadata repository)
>>> 8. Go to the exported directory and launch to test
>>> 9. Launch the p2 Agent
>>> 10. Add the repository as both an artifact repo and metadata repo
>>> 11. Create a profile
>>> 12. Drag the Example product to the profile
>>>
>>>
>>> I get an error:
>>> Items will be ignored.
>>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>>> requiredCapability:
>>> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>>>
>>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>>> requiredCapability:
>>> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
>>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>>> requiredCapability:
>>> toolingcom.example.rcp.product/com.example.rcp.product.launc her/[0.0.0,0.0.0]
>>>
>>> Unsatisfied dependency: [com.example.rcp.product 0.0.0]
>>> requiredCapability:
>>> toolingcom.example.rcp.product/com.example.rcp.product.ini/[ 0.0.0,0.0.0]
|
|
|
Goto Forum:
Current Time: Mon Jul 21 20:57:12 EDT 2025
Powered by FUDForum. Page generated in 0.03481 seconds
|