The Answer (but, as Deep Thought says in Hitchhiker's Guide, I don't think you're going to like it)...
Dec 01, 2009; 09:34pm aaime wrote: > > I've changed to geotools 2.6.0 but it is the same and yhis is what I have > > in my runnable jar in META-INF\services can uou see if something is missing? > > Ah, I think I know it, it's the single jar packaging that's breaking > everything. > > You know, the SPI system works so that each jar providing a certain type > of extension point, such as the EPSG factory, has a > org.opengis.referencing.crs.CRSAuthorityFactory > file in its META-INF/services folder. > > So we have many of these files, all distributed in different jars. > The moment you merge them into a single jar they overwrite each > other. > > Long story short, it's not possible to merge the GeoTools jars in > a single jar unless you're also manually editing the files > in META-INF/services so that they contain the sum of all same > named file contents > > Cheers > Andrea (this is from a long thread in the list archive: http://n2.nabble.com/Question-about-changing-a-features-style-dynamically-tp4087764p4092934.html) >From a quick google it seems that the Maven shade plugin might be able to help with merging the META-INF/services files from the various GeoTools jars. But I haven't used this (didn't even know about it until a few seconds ago). I'll experiment with it later today but, meanwhile, if anyone else on the list has used the shade plugin or similar for this task please speak up. Hope this helps. Michael ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
