I decode a CRS from its EPSG code using:
CoordinateReferenceSystem crs = CRS.decode("EPSG:3035");
This works like a charm, but when the same line of code is executed from an executable *.jar program, the following error occurs:
Exception in thread "main" org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:3035" for authority "EPSG" was found for an object of type "EngineeringCRS".
It seems the EPSG codes can no longer be decoded. This is confirmed by:
from the original code, but:
once executed from the *.jar program.
I am stuck for hours with this issue...
Changing the dependency from
gt-epsg-wkt did not fix the problem. When unzipping the *.jar file, the EPSG database is there, but it seems it cannot be read.
The *.jar program is produced using the maven-assembly-plugin.