Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>I'd prefer to only add the Servlet API as dependency, </p> </blockquote> <p>To be honest, I'm not sure to understand why but never mind...</p> <blockquote> <p><a href="https://stackoverflow.com/users/2362/brabster">Brabster</a> separate dependencies have been replaced by Java EE 6 Profiles. Is there a source that confirms this assumption?</p> </blockquote> <p>The maven repository from Java.net indeed offers the following artifact for the WebProfile:</p> <pre class="lang-xml prettyprint-override"><code>&lt;repositories&gt; &lt;repository&gt; &lt;id&gt;java.net2&lt;/id&gt; &lt;name&gt;Repository hosting the jee6 artifacts&lt;/name&gt; &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;javax&lt;/groupId&gt; &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt; &lt;version&gt;6.0&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>This jar includes Servlet 3.0, EJB Lite 3.1, JPA 2.0, JSP 2.2, EL 1.2, JSTL 1.2, JSF 2.0, JTA 1.1, JSR-45, JSR-250.</p> <p>But to my knowledge, nothing allows to say that these APIs won't be distributed separately (in java.net repository or somewhere else). For example (ok, it may a particular case), the JSF 2.0 API is available separately (in the java.net repository):</p> <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt; &lt;groupId&gt;com.sun.faces&lt;/groupId&gt; &lt;artifactId&gt;jsf-api&lt;/artifactId&gt; &lt;version&gt;2.0.0-b10&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>And actually, you could get <code>javax.servlet-3.0.jar</code> from <a href="http://download.java.net/maven/glassfish/org/glassfish/javax.servlet/3.0" rel="noreferrer">there</a> and install it in your own repository.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload