title: What is the Maven dependency for Java EE7 and CDI 2.0?
body: <p>I'm using JavaEE 7 but I want to use the CDI 2.0 API (with Weld and Tomcat, Jersey too). When I have the following Maven dependency, it uses the old CDI API for Event (so no <code>fireAsync</code>):</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;javax&lt;/groupId&gt;
          &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
          &lt;version&gt;7.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Adding this below it does not fix the issue (since the first maven dependency overrides it):</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;javax.enterprise&lt;/groupId&gt;
          &lt;artifactId&gt;cdi-api&lt;/artifactId&gt;
          &lt;version&gt;2.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>How would I get all the things I need (Jersey/Jax-RS, Servlets, ServerEndpoint, CDI 2.0/Weld in Tomcat 8) via Maven?</p>