/
Maven_and_RESTEasy.xml
executable file
·105 lines (100 loc) · 3.35 KB
/
Maven_and_RESTEasy.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<chapter id="Maven_and_RESTEasy">
<title>Maven and RESTEasy</title>
<para>
JBoss's Maven Repository is at:
http://repository.jboss.org/nexus/content/groups/public/
</para>
<para>
Here's the pom.xml fragment to use. RESTEasy is modularized into various components. Mix and max as you see fit. Please replace 3.7.0-SNAPSHOT with the current RESTEasy version you want to use.
</para>
<programlisting>
<![CDATA[
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<!-- core library -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- optional modules -->
<!-- JAXB support -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- multipart/form-data and multipart/mixed support -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- RESTEasy Server Cache -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-cache-core</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- Ruby YAML support -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-yaml-provider</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- JAXB + Atom support -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-atom-provider</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- Spring integration -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- Guice integration -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-guice</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
<!-- Asynchronous HTTP support with Servlet 3.0 -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>async-http-servlet-3.0</artifactId>
<version>3.7.0-SNAPSHOT</version>
</dependency>
</dependencies>
]]>
</programlisting>
<para>
There is also a pom that can be imported so the versions of the individual modules do not have to be specified. Note that maven 2.0.9 is required for this.
</para>
<programlisting>
<![CDATA[
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-bom</artifactId>
<version>3.7.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
]]>
</programlisting>
</chapter>