Skip to main content



      Home
Home » Eclipse Projects » Equinox » Using p2 to install a product
Using p2 to install a product [message #110581] Fri, 23 May 2008 14:40 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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]
Previous Topic:[p2] one special plugin not found at all
Next Topic:How to use Hibernate/JPA with OSGi
Goto Forum:
  


Current Time: Tue Jul 22 02:21:26 EDT 2025

Powered by FUDForum. Page generated in 0.07633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top