Resin 4 Maven Dependencies

From Resin 4.0 Wiki

Revision as of 17:24, 6 March 2014 by Cowan (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Construction-48.png

Resin 4 Maven Dependencies

Resin provides it's own implementations of most JavaEE 6 WebProfile libraries.

It does not provide implementations of javax.validation, javax.persistence, or javax.faces. For these the reference implementation is included with Resin.

All the javax API are included with Resin in javaee-16.jar located in the lib directory. For basic development, it is simplest to add this jar as a dependency which will provide your IDE with all the required APIs to code against.

For Maven development there are a few options.

  1. Deploy javaee-16.jar to your local Maven repository, using deploy-file as described here: https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
  1. Add a dependency on the javax.javaee-web-api available from java.net here: http://download.java.net/maven/2/javax/javaee-web-api/6.0/
   <dependencies>
     <dependency>
       <groupId>javax</groupId>
       <artifactId>javaee-web-api</artifactId>
       <version>6.0</version>
       <scope>provided</scope>
     </dependency>
     ...
  <repositories>
   <repository>
     <id>java.net.m2</id>
     <name>java.net m2 repo</name>
     <url>http://download.java.net/maven/2</url>
   </repository>
   ....
Personal tools
TOOLBOX
LANGUAGES