title: Struggling to update JRE dependencies within Maven and Eclipse
body: <p>I'm trying to build a <a href="https://github.com/openplans/OpenTripPlanner/wiki" rel="nofollow noreferrer">large Open Source project</a> in Eclipse; it uses Maven so I've installed the various plugins (m2eclipse etc) but I'm a little unfamiliar with this setup.</p>
  
  <p>I can build and run the particular JAR I'm interested in with no issues.  However, when the newly built JAR tries to open a large ZIP file, I get this:</p>
  
  <pre><code>Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: invalid CEN header (bad sig
  nature)
          at org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl.buildGraph(GtfsGraphBuilderImpl.java:17
  9)
          at org.opentripplanner.graph_builder.GraphBuilderTask.run(GraphBuilderTask.java:127)
          at org.opentripplanner.graph_builder.GraphBuilderMain.main(GraphBuilderMain.java:51)
  Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
          at java.util.zip.ZipFile.open(Native Method)
          at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)
  </code></pre>
  
  <p>I <a href="https://stackoverflow.com/questions/12346707/java-util-zip-zipexception-invalid-cen-header-bad-signature">did some research</a> and it seems that this error means that java.util.ZipFile can't read the file because it's in ZIP64 format.  Apparently this was fixed in Java 1.7, so dutifully I've updated the JDK on OS X, and tried to change the Maven project by right-clicking on it in Eclipse, then altering the Project Facet, which in turns seems to have updated the JRE libraries in that project to 1.7:</p>
  
  <p><img src="https://i.stack.imgur.com/ql9XS.png" alt="enter image description here"></p>
  
  <p>However, this doesn't work - I still get the error even having re-built the whole project.</p>
  
  <p>Is it possible that the old java.util.zip is still being pulled in from somewhere?  I'm not too familiar with how linking works in Java, can older JDKs be 'embedded' like this within dependencies?  Or does the java.util.zip just get used that's on the target machine?  (this is definitely JRE 1.7)  I know for a fact that the code throwing the exception is actually contained within a separate JAR that's pulled in as a Maven dependency:</p>
  
  <p><img src="https://i.stack.imgur.com/PnovG.png" alt="enter image description here"></p>
  
  <p>Do I need to track down and re-build this external JAR against Java 1.7, is that the issue here?   Or is there a concept of a Maven 'parent project' that's regressing my new JRE 1.7 back to 1.6?  Sorry if these questions are naive.</p>
  
  <p>I originally thought that it would be as simple as just updated the JRE on the runtime machine, but apparently not. So how do I resolve this error?  </p>