You're partially right : We lose the ability to do non-OSGi plugins.
If you look carefully on Jira, I provided a bridge that loads OSGi services 
corresponding to SPI into GeoTools' ServiceRegistry.
So if SPI implementations are registered as OSGi services, they become 
available. This is how we add our homemade plugins, and it's sufficient for 
us...
And it would probably be sufficient as a replacement in uDig until a "correct" 
SPI Fly-like approach is set up...

But you're right : this breaks how plugins are added to "standard" GeoTools.
If you wish to create a new GeoTools maven plugin, you must add the maven 
dependency in the "big bundle".
Then every GeoTools user must comment out the plugin dependencies they do not 
need in the pom...
I admit this is a poorly designed approach.

De : Jody Garnett [mailto:jody.garn...@gmail.com]
Envoyé : mardi 8 octobre 2013 11:17
À : Stéphane WASSERHARDT
Cc : Geotools-Devel list
Objet : Re: [Geotools-devel] OSGI related discussion going on in jira

So with the big bundle it is kind of an all you can eat approach, so we lose 
the ability to do plugins right?

Seems like a bit of a loss since OSGi is designed to enable safe control of 
plugin resources.

(Note for uDig we also have all the jars in a single bundle, so they can use 
the same classloader allowing factory spi to work. Only difference is that the 
result is a single app solution).

Jody Garnett

On Tue, Oct 8, 2013 at 8:10 PM, Stéphane WASSERHARDT 
<stephane.wasserha...@magellium.fr<mailto:stephane.wasserha...@magellium.fr>> 
wrote:
Hi Jody,

The first part of your solution is not really a problem.
The real problem is on the second part.
In order to avoid the complexity of handling this, we chose to create one big 
bundle with most of GeoTools jars : at least the ones that declare SPI 
implementations. Then maven-shade-plugin does the trick by merging SPI 
implementations declaration files.
Our work using this approach is uploaded in jira : 
https://jira.codehaus.org/browse/GEOT-2105
(the provided maven OSGi bundle needs renaming, but it's really straightforward 
as explained in comments)

If you really wish to have one OSGi bundle per jar in geotools, the way to go 
is most probably Apache Aries' SPI Fly as told by Harald 
Wellmann<https://jira.codehaus.org/secure/ViewProfile.jspa?name=hwellmann> on 
Jira.

We maintain our "big bundle" (as you can see in the pom, it's really 
geotools-10 ready) but if someone can provide an initial implementation using 
SPI Fly, we could migrate and help maintaining it instead.

Regards,
Stéphane

NB : In order to type "é", try ALT+0233 (working on windows at least), or use a 
programmable keyboard <:o)

De : Jody Garnett [mailto:jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>]
Envoyé : mardi 8 octobre 2013 06:24
À : Stéphane WASSERHARDT
Cc : Geotools-Devel list
Objet : Re: [Geotools-devel] OSGI related discussion going on in jira

Hi Stephane[1]:

I would love to see OSGi manifests added to GeoTools, as you can probably tell 
from an email archive search (and a couple proposals in the wiki) that this is 
a long running topic. At least one group has been successful (and not had 
budget to donate the solution back to the community).

It seems to be a two part solutions:
1) providing (or generating from maven) manifests for the geotools jars
2) ensuring the geotools factories are correctly wired together

Any insight on these topics is of course welcome. And of course ideas on where 
the project can obtain funding / volunteers to do the work.
--
Jody
[1] how do I type "é" ?


On Mon, Oct 7, 2013 at 9:07 PM, Stéphane WASSERHARDT 
<stephane.wasserha...@magellium.fr<mailto:stephane.wasserha...@magellium.fr>> 
wrote:
Hi,

I'm the one having troubles signing up.
If this mail reaches you, the issue is solved :-)

Feel free to contact me about the "OSGification" of Geotools.

Regards,
Stephane

De : Andrea Aime 
[mailto:andrea.a...@geo-solutions.it<mailto:andrea.a...@geo-solutions.it>]
Envoyé : lundi 7 octobre 2013 10:39
À : Geotools-Devel list
Objet : [Geotools-devel] OSGI related discussion going on in jira

Hi,
for those that might be interested, there is a long discussion about OSGI 
support in
jira, it seems the ones involved have troubles signign up on this mailing list?

https://jira.codehaus.org/browse/GEOT-2105

Cheers
Andrea

--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313<tel:%2B39%200584%20962313>
fax: +39 0584 1660272<tel:%2B39%200584%201660272>
mob: +39  339 8844549<tel:%2B39%20%C2%A0339%208844549>

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net<mailto:GeoTools-Devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geotools-devel


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net<mailto:GeoTools-Devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geotools-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to