Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Re: P2 and unresolved dependencies
Re: P2 and unresolved dependencies [message #114890] Mon, 21 July 2008 16:56 Go to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Roy Paterson wrote:
> I'm having a problem with P2 and unresolved dependencies. I make a
> product which is packaged as an Eclipse feature that my customers
> install in to their existing Eclipse installs. My product integrates
> with several 3rd-party team provider plugins, e.g. CVS (from Eclipse),
> Subclipse, P4WSAD, Clearcase, etc...
>
> Various bits of my code depend on code in those 3rd-party plugins.
> Typically a customer will only have one team plugin installed, for the
> SCM system they're using. To support this my feature includes "adapter"
> plugins, one for each of those 3rd party plugins. My "adapter" plugins
> each require one of the 3rd-party plugins. My core plugin provides an
> extension point which my adapter plugins implement. In a typical
> installation, only one of my 3rd party plugins would resolve, and my
> core code would use that one.
>
> This pattern worked fine in Eclipse 3.0 - 3.3, but seems to have
> problems with Eclipse 3.4, specifically with P2. I am able to install
> my feature with no errors and it works fine. However if I then try and
> install anything else P2 gives me lots of "Unsatisfied dependency" errors:
>
> Cannot complete the request. See the details.
> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.core/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.core/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
> Unsatisfied dependency:
> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
> requiredCapability:
> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.accu rev/[5.0.5001.1048,5.0.5001.1048]
>
> Unsatisfied dependency:
> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
> requiredCapability:
> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.perf orce/[5.0.5001.1048,5.0.5001.1048]
>
>
> P2 is correct in a sense - those 3rd-party plugins ARE required by my
> plugins, and they can't resolve. But this is working as designed, and
> was not a problem before P2.
>
> So how should this work? Is there a different way I should be
> implementing this 3rd-party-plugin integration pattern? At any rate it
> seems like a bug for P2 to allow my plugin to install and work, but then
> complain later when I try to install something unrelated.
>
> Thanks,
> Roy Paterson
> Smart Bear Software

I've re-routed to a group that's more in the "know"

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: P2 and unresolved dependencies [message #115013 is a reply to message #114890] Tue, 22 July 2008 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roy.paterson.smartbearsoftware.com

Update - I tried converting my "adapter" plugins in to fragments but
that didn't help - same result :-(

Paul Webster wrote:
> Roy Paterson wrote:
>> I'm having a problem with P2 and unresolved dependencies. I make a
>> product which is packaged as an Eclipse feature that my customers
>> install in to their existing Eclipse installs. My product integrates
>> with several 3rd-party team provider plugins, e.g. CVS (from Eclipse),
>> Subclipse, P4WSAD, Clearcase, etc...
>>
>> Various bits of my code depend on code in those 3rd-party plugins.
>> Typically a customer will only have one team plugin installed, for the
>> SCM system they're using. To support this my feature includes
>> "adapter" plugins, one for each of those 3rd party plugins. My
>> "adapter" plugins each require one of the 3rd-party plugins. My core
>> plugin provides an extension point which my adapter plugins
>> implement. In a typical installation, only one of my 3rd party
>> plugins would resolve, and my core code would use that one.
>>
>> This pattern worked fine in Eclipse 3.0 - 3.3, but seems to have
>> problems with Eclipse 3.4, specifically with P2. I am able to install
>> my feature with no errors and it works fine. However if I then try
>> and install anything else P2 gives me lots of "Unsatisfied dependency"
>> errors:
>>
>> Cannot complete the request. See the details.
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability:
>> osgi.bundle/com.perforce.team.core/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability:
>> osgi.bundle/com.perforce.team.core/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>> Unsatisfied dependency:
>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>> requiredCapability:
>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.accu rev/[5.0.5001.1048,5.0.5001.1048]
>>
>> Unsatisfied dependency:
>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>> requiredCapability:
>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.perf orce/[5.0.5001.1048,5.0.5001.1048]
>>
>>
>> P2 is correct in a sense - those 3rd-party plugins ARE required by my
>> plugins, and they can't resolve. But this is working as designed, and
>> was not a problem before P2.
>>
>> So how should this work? Is there a different way I should be
>> implementing this 3rd-party-plugin integration pattern? At any rate
>> it seems like a bug for P2 to allow my plugin to install and work, but
>> then complain later when I try to install something unrelated.
>>
>> Thanks,
>> Roy Paterson
>> Smart Bear Software
>
> I've re-routed to a group that's more in the "know"
>
> PW
>
Re: P2 and unresolved dependencies [message #115024 is a reply to message #114890] Tue, 22 July 2008 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roy.paterson.smartbearsoftware.com

Update - I tried converting my "adapter" plugins in to fragments but
that didn't help - same result :-(

Paul Webster wrote:
> Roy Paterson wrote:
>> I'm having a problem with P2 and unresolved dependencies. I make a
>> product which is packaged as an Eclipse feature that my customers
>> install in to their existing Eclipse installs. My product integrates
>> with several 3rd-party team provider plugins, e.g. CVS (from Eclipse),
>> Subclipse, P4WSAD, Clearcase, etc...
>>
>> Various bits of my code depend on code in those 3rd-party plugins.
>> Typically a customer will only have one team plugin installed, for the
>> SCM system they're using. To support this my feature includes
>> "adapter" plugins, one for each of those 3rd party plugins. My
>> "adapter" plugins each require one of the 3rd-party plugins. My core
>> plugin provides an extension point which my adapter plugins
>> implement. In a typical installation, only one of my 3rd party
>> plugins would resolve, and my core code would use that one.
>>
>> This pattern worked fine in Eclipse 3.0 - 3.3, but seems to have
>> problems with Eclipse 3.4, specifically with P2. I am able to install
>> my feature with no errors and it works fine. However if I then try
>> and install anything else P2 gives me lots of "Unsatisfied dependency"
>> errors:
>>
>> Cannot complete the request. See the details.
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability:
>> osgi.bundle/com.perforce.team.core/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability:
>> osgi.bundle/com.perforce.team.core/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.team.ui/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>> Unsatisfied dependency:
>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>> requiredCapability:
>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.accu rev/[5.0.5001.1048,5.0.5001.1048]
>>
>> Unsatisfied dependency:
>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>> requiredCapability:
>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.perf orce/[5.0.5001.1048,5.0.5001.1048]
>>
>>
>> P2 is correct in a sense - those 3rd-party plugins ARE required by my
>> plugins, and they can't resolve. But this is working as designed, and
>> was not a problem before P2.
>>
>> So how should this work? Is there a different way I should be
>> implementing this 3rd-party-plugin integration pattern? At any rate
>> it seems like a bug for P2 to allow my plugin to install and work, but
>> then complain later when I try to install something unrelated.
>>
>> Thanks,
>> Roy Paterson
>> Smart Bear Software
>
> I've re-routed to a group that's more in the "know"
>
> PW
>
Re: P2 and unresolved dependencies [message #115037 is a reply to message #115013] Tue, 22 July 2008 17:10 Go to previous message
Eclipse UserFriend
Originally posted by: roy.paterson.smartbearsoftware.com

Looks like this is the same problem reported in bug 236111
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=236111). See especially
comments #4, #8, and #9. Also bug 225340
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=225340).

So it sounds like the "solution" for me is to use create separate
features for each of my "adapter" plugins and then optionally include
them from my main feature. That means my product would go from 1
feature to 12 features!

This is far from ideal - now I have lots of components that may or may
not have been installed properly. Many more moving pieces to confuse my
customers and provide potential for confusion and misconfiguration.

Frankly I'm pretty irritated with P2 here and trying really hard not to
turn this in to a rant. I'm very tempted to add an install handler to
my product as a workaround - this forces P2 to fail over to the old
Upgrade Manager that still works...

Roy Paterson wrote:
> Update - I tried converting my "adapter" plugins in to fragments but
> that didn't help - same result :-(
>
> Paul Webster wrote:
>> Roy Paterson wrote:
>>> I'm having a problem with P2 and unresolved dependencies. I make a
>>> product which is packaged as an Eclipse feature that my customers
>>> install in to their existing Eclipse installs. My product integrates
>>> with several 3rd-party team provider plugins, e.g. CVS (from
>>> Eclipse), Subclipse, P4WSAD, Clearcase, etc...
>>>
>>> Various bits of my code depend on code in those 3rd-party plugins.
>>> Typically a customer will only have one team plugin installed, for
>>> the SCM system they're using. To support this my feature includes
>>> "adapter" plugins, one for each of those 3rd party plugins. My
>>> "adapter" plugins each require one of the 3rd-party plugins. My core
>>> plugin provides an extension point which my adapter plugins
>>> implement. In a typical installation, only one of my 3rd party
>>> plugins would resolve, and my core code would use that one.
>>>
>>> This pattern worked fine in Eclipse 3.0 - 3.3, but seems to have
>>> problems with Eclipse 3.4, specifically with P2. I am able to
>>> install my feature with no errors and it works fine. However if I
>>> then try and install anything else P2 gives me lots of "Unsatisfied
>>> dependency" errors:
>>>
>>> Cannot complete the request. See the details.
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability:
>>> osgi.bundle/com.perforce.team.core/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability:
>>> osgi.bundle/com.perforce.team.ui/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability:
>>> osgi.bundle/com.perforce.team.core/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability:
>>> osgi.bundle/com.perforce.team.ui/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.perforce
>>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.perforce.p4api/0.0.0
>>> Unsatisfied dependency: [com.smartbear.collaborator.ui.accurev
>>> 5.0.5001.1048] requiredCapability: osgi.bundle/com.accurev.eclipse/0.0.0
>>> Unsatisfied dependency:
>>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>>> requiredCapability:
>>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.accu rev/[5.0.5001.1048,5.0.5001.1048]
>>>
>>> Unsatisfied dependency:
>>> [com.smartbear.collaborator.base.feature.feature.group 5.0.5001.1048]
>>> requiredCapability:
>>> org.eclipse.equinox.p2.iu/com.smartbear.collaborator.ui.perf orce/[5.0.5001.1048,5.0.5001.1048]
>>>
>>>
>>> P2 is correct in a sense - those 3rd-party plugins ARE required by my
>>> plugins, and they can't resolve. But this is working as designed,
>>> and was not a problem before P2.
>>>
>>> So how should this work? Is there a different way I should be
>>> implementing this 3rd-party-plugin integration pattern? At any rate
>>> it seems like a bug for P2 to allow my plugin to install and work,
>>> but then complain later when I try to install something unrelated.
>>>
>>> Thanks,
>>> Roy Paterson
>>> Smart Bear Software
>>
>> I've re-routed to a group that's more in the "know"
>>
>> PW
>>
Previous Topic:p2 director application: Installing and uninstalling feature
Next Topic:How to set a particular touchpoint
Goto Forum:
  


Current Time: Fri Apr 26 08:05:11 GMT 2024

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

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

Back to the top