11<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2- xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
3- <modelVersion >4.0.0</modelVersion >
4- <artifactId >cxf-spring</artifactId >
5- <packaging >war</packaging >
6- <parent >
7- <groupId >com.baeldung</groupId >
8- <artifactId >apache-cxf</artifactId >
9- <version >0.0.1-SNAPSHOT</version >
10- </parent >
11- <properties >
12- <cxf .version>3.1.6</cxf .version>
13- <spring .version>4.3.1.RELEASE</spring .version>
14- <surefire .version>2.19.1</surefire .version>
15- </properties >
16- <build >
17- <plugins >
18- <plugin >
19- <artifactId >maven-war-plugin</artifactId >
20- <version >2.6</version >
21- <configuration >
22- <webXml >src/main/webapp/WEB-INF/web.xml</webXml >
23- </configuration >
24- </plugin >
25- <plugin >
26- <artifactId >maven-surefire-plugin</artifactId >
27- <version >${surefire.version} </version >
28- <configuration >
29- <excludes >
30- <exclude >StudentTest.java</exclude >
31- </excludes >
32- </configuration >
33- </plugin >
34- </plugins >
35- </build >
36- <profiles >
37- <profile >
38- <id >integration</id >
39- <build >
40- <plugins >
41- <plugin >
42- <groupId >org.codehaus.cargo</groupId >
43- <artifactId >cargo-maven2-plugin</artifactId >
44- <version >1.5.0</version >
45- <configuration >
46- <container >
47- <containerId >jetty9x</containerId >
48- <type >embedded</type >
49- </container >
50- <configuration >
51- <properties >
52- <cargo .hostname>localhost</cargo .hostname>
53- <cargo .servlet.port>8080</cargo .servlet.port>
54- </properties >
55- </configuration >
56- </configuration >
57- <executions >
58- <execution >
59- <id >start-server</id >
60- <phase >pre-integration-test</phase >
61- <goals >
62- <goal >start</goal >
63- </goals >
64- </execution >
65- <execution >
66- <id >stop-server</id >
67- <phase >post-integration-test</phase >
68- <goals >
69- <goal >stop</goal >
70- </goals >
71- </execution >
72- </executions >
73- </plugin >
74- <plugin >
75- <artifactId >maven-surefire-plugin</artifactId >
76- <version >${surefire.version} </version >
77- <executions >
78- <execution >
79- <phase >integration-test</phase >
80- <goals >
81- <goal >test</goal >
82- </goals >
83- <configuration >
84- <excludes >
85- <exclude >none</exclude >
86- </excludes >
87- </configuration >
88- </execution >
89- </executions >
90- </plugin >
91- </plugins >
92- </build >
93- </profile >
94- </profiles >
95- <dependencies >
96- <dependency >
97- <groupId >org.apache.cxf</groupId >
98- <artifactId >cxf-rt-frontend-jaxws</artifactId >
99- <version >${cxf.version} </version >
100- </dependency >
101- <dependency >
102- <groupId >org.apache.cxf</groupId >
103- <artifactId >cxf-rt-transports-http-jetty</artifactId >
104- <version >${cxf.version} </version >
105- </dependency >
106- <dependency >
107- <groupId >org.springframework</groupId >
108- <artifactId >spring-context</artifactId >
109- <version >${spring.version} </version >
110- </dependency >
111- <dependency >
112- <groupId >org.springframework</groupId >
113- <artifactId >spring-web</artifactId >
114- <version >${spring.version} </version >
115- </dependency >
116- </dependencies >
117- </project >
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <artifactId >cxf-spring</artifactId >
5+ <packaging >war</packaging >
6+ <parent >
7+ <groupId >com.baeldung</groupId >
8+ <artifactId >apache-cxf</artifactId >
9+ <version >0.0.1-SNAPSHOT</version >
10+ </parent >
11+ <properties >
12+ <cxf .version>3.1.6</cxf .version>
13+ <spring .version>4.3.1.RELEASE</spring .version>
14+ <surefire .version>2.19.1</surefire .version>
15+ </properties >
16+ <build >
17+ <plugins >
18+ <plugin >
19+ <artifactId >maven-war-plugin</artifactId >
20+ <version >2.6</version >
21+ <configuration >
22+ <webXml >src/main/webapp/WEB-INF/web.xml</webXml >
23+ </configuration >
24+ </plugin >
25+ <plugin >
26+ <artifactId >maven-surefire-plugin</artifactId >
27+ <version >${surefire.version} </version >
28+ <configuration >
29+ <excludes >
30+ <exclude >StudentTest.java</exclude >
31+ </excludes >
32+ </configuration >
33+ </plugin >
34+ </plugins >
35+ </build >
36+ <profiles >
37+ <profile >
38+ <id >integration</id >
39+ <build >
40+ <plugins >
41+ <plugin >
42+ <groupId >org.codehaus.cargo</groupId >
43+ <artifactId >cargo-maven2-plugin</artifactId >
44+ <version >1.5.0</version >
45+ <configuration >
46+ <container >
47+ <containerId >jetty9x</containerId >
48+ <type >embedded</type >
49+ </container >
50+ <configuration >
51+ <properties >
52+ <cargo .hostname>localhost</cargo .hostname>
53+ <cargo .servlet.port>8080</cargo .servlet.port>
54+ </properties >
55+ </configuration >
56+ </configuration >
57+ <executions >
58+ <execution >
59+ <id >start-server</id >
60+ <phase >pre-integration-test</phase >
61+ <goals >
62+ <goal >start</goal >
63+ </goals >
64+ </execution >
65+ <execution >
66+ <id >stop-server</id >
67+ <phase >post-integration-test</phase >
68+ <goals >
69+ <goal >stop</goal >
70+ </goals >
71+ </execution >
72+ </executions >
73+ </plugin >
74+ <plugin >
75+ <artifactId >maven-surefire-plugin</artifactId >
76+ <version >${surefire.version} </version >
77+ <executions >
78+ <execution >
79+ <phase >integration-test</phase >
80+ <goals >
81+ <goal >test</goal >
82+ </goals >
83+ <configuration >
84+ <excludes >
85+ <exclude >none</exclude >
86+ </excludes >
87+ </configuration >
88+ </execution >
89+ </executions >
90+ </plugin >
91+ </plugins >
92+ </build >
93+ </profile >
94+ </profiles >
95+ <dependencies >
96+ <dependency >
97+ <groupId >org.apache.cxf</groupId >
98+ <artifactId >cxf-rt-frontend-jaxws</artifactId >
99+ <version >${cxf.version} </version >
100+ </dependency >
101+ <dependency >
102+ <groupId >org.apache.cxf</groupId >
103+ <artifactId >cxf-rt-transports-http-jetty</artifactId >
104+ <version >${cxf.version} </version >
105+ </dependency >
106+ <dependency >
107+ <groupId >org.springframework</groupId >
108+ <artifactId >spring-context</artifactId >
109+ <version >${spring.version} </version >
110+ </dependency >
111+ <dependency >
112+ <groupId >org.springframework</groupId >
113+ <artifactId >spring-web</artifactId >
114+ <version >${spring.version} </version >
115+ </dependency >
116+ </dependencies >
117+ </project >
0 commit comments