title: Maven ERROR: package javax.servlet does not exist
body: <p>I am starting on a legacy project and trying to get it to build using Maven. I'm using Eclipse EE and Tomcat v7.0. The error in the Title line above arises when I run "mvn package" in Terminal. This error is really stumping me because in my pom.xml file I have the following dependency</p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
  &lt;artifactId&gt;jstl&lt;/artifactId&gt;
  &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I've also checked in the Properties>Targeted Runtimes and made sure Tomcat v7.0 is the selected runtime. I'm fairly certain it's a problem with my eclipse environment, and would like some suggestions on how to fix it.</p>
  
  <p>EDIT: Here's some additional information. The first output after I run "mvn package" is</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project myProject: Compilation failure: Compilation failure:
  </code></pre>
  
  <p>This is followed by another strange error that I forgot to include in the original posting. I say it's weird because, like the package javax.servlet, org.apache.catalina should also be included in tomcat</p>
  
  <pre><code>[ERROR] /path/to/Main.java:[7,26] error: package org.apache.catalina does not exist
  </code></pre>
  
  <p>Also, I think I mixed up the meaning of legacy project, because this isn't an old project. It's just a project that already had a lot of work done on that I'm now helping the original creator with.</p>