title: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS"
body: <p>I am trying to GeoTool's CoordinateReferenceSystem with the following code:</p>
  
  <pre><code>try {
      targetCRS = CRS.decode("EPSG:4326");
      logger.info("\nTarget: " + targetCRS.toWKT());
  } catch (NoSuchAuthorityCodeException e) {
      logger.error(e.toString());
  } catch (FactoryException e) {
      logger.error(e.toString());
  } catch (Exception e) {
      logger.error(e.toString());
  }
  </code></pre>
  
  <p>It works when I run the service in vscode, but when I deploy it to Kubernetes, I get:</p>
  
  <blockquote>
    <p>2020-03-31 20:54:16,985 ERROR (TrackRecordProjector.java:76) -
    org.opengis.referencing.NoSuchAuthorityCodeException: No code
    "EPSG:4326" from authority "EPSG" found for object of type
    "EngineeringCRS".</p>
  </blockquote>
  
  <p>I assume this is something to do with the HSQL database that contains the reference systems.</p>
  
  <p>I checked my JAR that is produced using:</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;descriptorRefs&gt;
                  &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
              &lt;/descriptorRefs&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;make-assembly&lt;/id&gt;
                  &lt;phase&gt;package&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;single&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>The META-INF/services folder in the JAR contains two different entries for org.opengis.referencing.cs.CSAuthorityFactory. I checked based on a comment on this site for another question (<a href="https://stackoverflow.com/questions/27429097/geotools-cannot-find-hsql-epsg-db-throws-error-nosuchauthoritycodeexception">Geotools cannot find HSQL EPSG DB, throws error: NoSuchAuthorityCodeException</a>). However I don't know what this means and how to fix it. </p>