1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+
6+ <groupId >com.baeldung</groupId >
7+ <artifactId >resteasy-tutorial</artifactId >
8+ <version >1.0</version >
9+ <packaging >war</packaging >
10+
11+ <properties >
12+ <resteasy .version>3.0.19.Final</resteasy .version>
13+ <junit .version>4.12</junit .version>
14+ <commons-io .version>2.5</commons-io .version>
15+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
16+ <cargo-maven2-plugin .version>1.6.1</cargo-maven2-plugin .version>
17+ </properties >
18+
19+ <build >
20+ <finalName >RestEasyTutorial</finalName >
21+ <plugins >
22+ <plugin >
23+ <groupId >org.apache.maven.plugins</groupId >
24+ <artifactId >maven-compiler-plugin</artifactId >
25+ <configuration >
26+ <source >1.8</source >
27+ <target >1.8</target >
28+ </configuration >
29+ </plugin >
30+ <plugin >
31+ <groupId >org.apache.maven.plugins</groupId >
32+ <artifactId >maven-surefire-plugin</artifactId >
33+ <version >${maven-surefire-plugin.version} </version >
34+ <configuration >
35+ <excludes >
36+ <exclude >**/*IntegrationTest.java</exclude >
37+ <exclude >**/*LiveTest.java</exclude >
38+ </excludes >
39+ </configuration >
40+ </plugin >
41+
42+ <plugin >
43+ <groupId >org.codehaus.cargo</groupId >
44+ <artifactId >cargo-maven2-plugin</artifactId >
45+ <version >${cargo-maven2-plugin.version} </version >
46+ <configuration >
47+ <wait >true</wait >
48+ <container >
49+ <containerId >jetty8x</containerId >
50+ <type >embedded</type >
51+ </container >
52+ <configuration >
53+ <properties >
54+ <cargo .servlet.port>8082</cargo .servlet.port>
55+ </properties >
56+ </configuration >
57+ </configuration >
58+ </plugin >
59+ </plugins >
60+ </build >
61+
62+ <dependencies >
63+
64+ <!-- core library -->
65+
66+ <dependency >
67+ <groupId >org.jboss.resteasy</groupId >
68+ <artifactId >resteasy-servlet-initializer</artifactId >
69+ <version >${resteasy.version} </version >
70+ </dependency >
71+
72+
73+ <dependency >
74+ <groupId >org.jboss.resteasy</groupId >
75+ <artifactId >resteasy-client</artifactId >
76+ <version >${resteasy.version} </version >
77+ </dependency >
78+
79+ <!-- Optional library -->
80+
81+ <dependency >
82+ <groupId >org.jboss.resteasy</groupId >
83+ <artifactId >resteasy-jaxb-provider</artifactId >
84+ <version >${resteasy.version} </version >
85+ </dependency >
86+
87+ <dependency >
88+ <groupId >org.jboss.resteasy</groupId >
89+ <artifactId >resteasy-jackson-provider</artifactId >
90+ <version >${resteasy.version} </version >
91+ </dependency >
92+
93+ <!-- Junit Library -->
94+
95+ <dependency >
96+ <groupId >junit</groupId >
97+ <artifactId >junit</artifactId >
98+ <version >${junit.version} </version >
99+ </dependency >
100+
101+ <dependency >
102+ <groupId >commons-io</groupId >
103+ <artifactId >commons-io</artifactId >
104+ <version >${commons-io.version} </version >
105+ </dependency >
106+
107+ </dependencies >
108+
109+ <profiles >
110+ <profile >
111+ <id >live</id >
112+ <build >
113+
114+ <plugins >
115+
116+ <plugin >
117+ <groupId >org.apache.maven.plugins</groupId >
118+ <artifactId >maven-surefire-plugin</artifactId >
119+ <executions >
120+ <execution >
121+ <phase >integration-test</phase >
122+ <goals >
123+ <goal >test</goal >
124+ </goals >
125+ <configuration >
126+ <excludes >
127+ <exclude >**/*IntegrationTest.java</exclude >
128+ </excludes >
129+ <includes >
130+ <include >**/*LiveTest.java</include >
131+ </includes >
132+ </configuration >
133+ </execution >
134+ </executions >
135+ <configuration >
136+ <systemPropertyVariables >
137+ <test .mime>json</test .mime>
138+ </systemPropertyVariables >
139+ </configuration >
140+ </plugin >
141+ <plugin >
142+ <groupId >org.codehaus.cargo</groupId >
143+ <artifactId >cargo-maven2-plugin</artifactId >
144+ <version >${cargo-maven2-plugin.version} </version >
145+ <configuration >
146+ <wait >false</wait >
147+ </configuration >
148+ <executions >
149+ <execution >
150+ <id >start-server</id >
151+ <phase >pre-integration-test</phase >
152+ <goals >
153+ <goal >start</goal >
154+ </goals >
155+ </execution >
156+ <execution >
157+ <id >stop-server</id >
158+ <phase >post-integration-test</phase >
159+ <goals >
160+ <goal >stop</goal >
161+ </goals >
162+ </execution >
163+ </executions >
164+ </plugin >
165+ </plugins >
166+
167+ </build >
168+ </profile >
169+ </profiles >
170+
171+ </project >
0 commit comments