title: Maven dependecies for Mojarra 2.1
body: <p>I want to use <code>Mojarra 2.1</code></p>
  
  <p><a href="http://javaserverfaces.java.net/download.html" rel="nofollow">http://javaserverfaces.java.net/download.html</a></p>
  
  <p>and my container is <code>Tomcat 7</code> and I am using <code>IceFaces 2</code>.</p>
  
  <p>Should I include the API only as follows?</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.faces&lt;/groupId&gt;
      &lt;artifactId&gt;javax.faces-api&lt;/artifactId&gt;
      &lt;version&gt;2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>UPDATE:</strong> I am using servlet 3.0.1, jsp 2.2.1, el 2.2 maybe it's conflicting:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet.jsp-api&lt;/artifactId&gt;
      &lt;version&gt;2.2.1&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;javax.el&lt;/groupId&gt;
      &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
      &lt;version&gt;2.2.2&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>