Java Reference
In-Depth Information
<groupId>
<groupId> org.jboss.resteasy </groupId>
</groupId>
<artifactId>
<artifactId> resteasy-client </artifactId>
</artifactId>
<version>
<version> 3.0.5.Final </version>
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
<groupId> org.jboss.resteasy </groupId>
</groupId>
<artifactId>
<artifactId> async-http-servlet-3.0 </artifactId>
</artifactId>
<version>
<version> 3.0.5.Final </version>
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
<groupId> org.jboss.resteasy </groupId>
</groupId>
<artifactId>
<artifactId> jaxrs-api </artifactId>
</artifactId>
<version>
<version> 3.0.5.Final </version>
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
<groupId> org.jboss.resteasy </groupId>
</groupId>
<artifactId>
<artifactId> resteasy-servlet-initializer </artifactId>
</artifactId>
<version>
<version> 3.0.5.Final </version>
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
<groupId> junit </groupId>
</groupId>
<artifactId>
<artifactId> junit </artifactId>
</artifactId>
<version>
<version> 4.1 </version>
</version>
<scope>
<scope> test </scope>
</scope>
</dependency>
</dependencies>
</dependency>
</dependencies>
The dependencies element lists all library dependencies our ex03_1 project needs to com-
pile and run. We are dependent on the RESTEasy project, as this is the JAX-RS implementa-
tion we are using. We are also dependent on the JUnit library for running the test code in our
project. Prior to building, Maven will search for these libraries within the remote repositories
listed in the parent POM. It will then download these libraries to your machine along with
each of the transitive dependencies that these libraries have. What do I mean by transitive
dependencies ? Well, for example, RESTEasy depends on a multitude of third-party libraries
like the servlet and JAXB APIs. The repository in which RESTEasy resides contains
metadata about RESTEasy's dependencies. Maven will discover these extra dependencies
when it tries to download the RESTEasy JAR.
Unless you define a scope element, each dependency and its transitive dependencies will be
included in your WAR's WEB-INF/lib directory when it is built. Take a look specifically at
the junit dependency:
<dependency>
<dependency>
<groupId>
<groupId> junit </groupId>
</groupId>
Search WWH ::




Custom Search