> On 28 Nov 2015, at 07:25, Tom Kunicki <tom.kuni...@weather.com> wrote:
> 
> Tore,
> 
> I suspect that you're missing the directives for the shade plugin merge 
> strategy for the JAI specific registration files.  Below is a snippet of 
> maven shade plugin configuration that specifies that JAI registration files 
> be merged during shaded jar creation.  You'll need this so that the JAI 
> component registration files are properly merged when creating the shaded jar.
> 
>         <transformers>
>           <!-- merges META-INF/services/ entries instead of overwriting -->
>           <transformer 
> implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
>           <!-- merges META-INF/javax.media.jai.registryFile.jai entries 
> instead of overwriting -->
>           <transformer 
> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>             <resource>META-INF/javax.media.jai.registryFile.jai</resource>
>           </transformer>
>           <!-- merges META-INF/registryFile.jai entries instead of 
> overwriting -->
>           <transformer 
> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>             <resource>META-INF/registryFile.jai</resource>
>           </transformer>
>           <!-- merges META-INF/registryFile.jaiext entries instead of 
> overwriting -->
>           <transformer 
> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>             <resource>META-INF/registryFile.jaiext</resource>
>           </transformer>


Thank you very much, Tom! This was perfect! I had the one to fix 
META-INF/services/ from an earlier (non-raster) use of GeoTools in the 
application. The additional transformers for the jai-files fixed the scaling!

Thank you! :)

Regards,
Tore Halset.


------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to