java - deploy same plug with different version -


i have osgi project couple plugins 1 of plugin called:

com.lilum.sr.util 

and otheres plugin use plugin

plugin:

com.lilum.sr.servea

require-bundle: org.eclipse.core.runtime,  com.lilum.sr.util="1.2.3" 

com.lilum.sr.serveb

require-bundle: org.eclipse.core.runtime,      com.lilum.sr.util="1.2.5" 

as can see plugin com.lilum.sr.servea use com.lilum.sr.util version 1.2.3

and plugin com.lilum.sr.serveb use com.lilum.sr.util version 1.2.5

and when deploy them, both use com.lilum.sr.util highets version (1.2.5) want force com.lilum.sr.servea use com.lilum.sr.util (1.2.3)

there way it?

i try use range version ([1.2.3, 1.2.4)) error can't resolve com.lilum.sr.util_[1.2.3, 1.2.4) it's seems osgi deploy highets version

in osgi, third segment of version identifies "service" or "patch" release. first , second identify when api has changed. because of this, osgi treating 2 bundles equivalent in api , opting "better" of two: 1 more patches applied it.

you should update major or minor version number indicate api modifications made bundle, , should work properly. if have no api changes implementation detail changes , else equivalent in 2 bundles, there should no reason use 1 lower third segment.

see https://wiki.eclipse.org/version_numbering

also, if bundle has metadata requires system-singleton, not able have multiple in osgi runtime anyway.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -