Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugins with different versions, one as project, one as jar
Plugins with different versions, one as project, one as jar [message #330231] Tue, 22 July 2008 05:31 Go to next message
Eclipse UserFriend
Hi,

I've got two versions of the same library-plugin, one as a jar-file in
the plugin-directory and the newer one as project in the workspace. If
I configure a dependency on another plugin to the old version of my
lib-plugin, Eclipse gives an error "Unsatisfied version constraint". If
I close the the lib-plugin-project, the error goes away.
If I package both lib-plugin-versions as jars, it also works.
Could this be a bug or am I doing something wrong?

I tested this on 3.3 and 3.4.
This is the line that gives the error:

Require-Bundle: de.qs.framework;bundle-version="[1.2.0,1.2.1)"

while having a plugin-project with version 1.2.1 and a jar with version
1.2.0 in the plugin-dir.

Thanks,
Manuel

--
Re: Plugins with different versions, one as project, one as jar [message #330239 is a reply to message #330231] Tue, 22 July 2008 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Manuel Steurer wrote:
> Hi,
>
> I've got two versions of the same library-plugin, one as a jar-file in
> the plugin-directory and the newer one as project in the workspace. If
> I configure a dependency on another plugin to the old version of my
> lib-plugin, Eclipse gives an error "Unsatisfied version constraint". If
> I close the the lib-plugin-project, the error goes away.
> If I package both lib-plugin-versions as jars, it also works.
> Could this be a bug or am I doing something wrong?
>
> I tested this on 3.3 and 3.4.
> This is the line that gives the error:
>
> Require-Bundle: de.qs.framework;bundle-version="[1.2.0,1.2.1)"
>
> while having a plugin-project with version 1.2.1 and a jar with version
> 1.2.0 in the plugin-dir.

AFAIK PDE picks your workspace project over your target platform plugin
(that's standard). Your version constraint precludes 1.2.1 and PDE
won't make 1.2.0 visible (hence the error).

I would say the solution (as you found) is to close your workspace
project or change your version constraint to something like [1.2.0,1.2.1]

You can open an enhancement request against PDE as well.


--
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: Plugins with different versions, one as project, one as jar [message #330252 is a reply to message #330239] Wed, 23 July 2008 02:52 Go to previous message
Eclipse UserFriend
Thanks for your reply.

It's not really a solution to my problem,
since I want one project to depend on the old
version and not the new one. I have other projects
that do depend on the new version (under active
development), though.

It's no big deal and certainly no longtime situation
for me, it just struck me as odd.


Paul Webster wrote:

> Manuel Steurer wrote:
> > Hi,
> >
> > I've got two versions of the same library-plugin, one as a jar-file
> > in the plugin-directory and the newer one as project in the
> > workspace. If I configure a dependency on another plugin to the old
> > version of my lib-plugin, Eclipse gives an error "Unsatisfied
> > version constraint". If I close the the lib-plugin-project, the
> > error goes away. If I package both lib-plugin-versions as jars, it
> > also works. Could this be a bug or am I doing something wrong?
> >
> > I tested this on 3.3 and 3.4.
> > This is the line that gives the error:
> >
> > Require-Bundle: de.qs.framework;bundle-version="[1.2.0,1.2.1)"
> >
> > while having a plugin-project with version 1.2.1 and a jar with
> > version 1.2.0 in the plugin-dir.
>
> AFAIK PDE picks your workspace project over your target platform
> plugin (that's standard). Your version constraint precludes 1.2.1
> and PDE won't make 1.2.0 visible (hence the error).
>
> I would say the solution (as you found) is to close your workspace
> project or change your version constraint to something like
> [1.2.0,1.2.1]
>
> You can open an enhancement request against PDE as well.



--
Previous Topic:CCombo and Databinding
Next Topic:Contributing ToggleState menu items or ViewFilter(Action) contributions.. (using eclipse 3.3)
Goto Forum:
  


Current Time: Wed May 28 17:48:47 EDT 2025

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

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

Back to the top