1- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2- <modelVersion >4.0.0</modelVersion >
3- <groupId >org.baeldung</groupId >
4- <artifactId >spring-rest</artifactId >
5- <version >0.1-SNAPSHOT</version >
6-
7- <name >spring-rest</name >
8- <packaging >war</packaging >
9-
10- <dependencies >
11-
12- <!-- Spring -->
13-
14- <dependency >
15- <groupId >org.springframework</groupId >
16- <artifactId >spring-web</artifactId >
17- <version >${org.springframework.version} </version >
18- </dependency >
19- <dependency >
20- <groupId >org.springframework</groupId >
21- <artifactId >spring-webmvc</artifactId >
22- <version >${org.springframework.version} </version >
23- </dependency >
24-
25- <!-- web -->
26-
27- <dependency >
28- <groupId >javax.servlet</groupId >
29- <artifactId >javax.servlet-api</artifactId >
30- <version >3.0.1</version >
31- <scope >provided</scope >
32- </dependency >
33-
34- <dependency >
35- <groupId >javax.servlet</groupId >
36- <artifactId >jstl</artifactId >
37- <version >1.2</version >
38- <scope >runtime</scope >
39- </dependency >
40-
41- <!-- test scoped -->
42-
43- <dependency >
44- <groupId >junit</groupId >
45- <artifactId >junit-dep</artifactId >
46- <version >${junit.version} </version >
47- <scope >test</scope >
48- </dependency >
49-
50- <dependency >
51- <groupId >org.hamcrest</groupId >
52- <artifactId >hamcrest-core</artifactId >
53- <version >${org.hamcrest.version} </version >
54- <scope >test</scope >
55- </dependency >
56- <dependency >
57- <groupId >org.hamcrest</groupId >
58- <artifactId >hamcrest-library</artifactId >
59- <version >${org.hamcrest.version} </version >
60- <scope >test</scope >
61- </dependency >
62-
63- <dependency >
64- <groupId >org.mockito</groupId >
65- <artifactId >mockito-core</artifactId >
66- <version >${mockito.version} </version >
67- <scope >test</scope >
68- </dependency >
69-
70- </dependencies >
71-
72- <build >
73- <finalName >spring-rest</finalName >
74- <resources >
75- <resource >
76- <directory >src/main/resources</directory >
77- <filtering >true</filtering >
78- </resource >
79- </resources >
80-
81- <plugins >
82-
83- <plugin >
84- <groupId >org.apache.maven.plugins</groupId >
85- <artifactId >maven-surefire-plugin</artifactId >
86- <version >${maven-surefire-plugin.version} </version >
87- <configuration >
88- <excludes >
89- <!-- <exclude>**/*ProductionTest.java</exclude> -->
90- </excludes >
91- <systemPropertyVariables >
92- <!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
93- </systemPropertyVariables >
94- </configuration >
95- </plugin >
96-
97- <plugin >
98- <groupId >org.codehaus.cargo</groupId >
99- <artifactId >cargo-maven2-plugin</artifactId >
100- <version >${cargo-maven2-plugin.version} </version >
101- <configuration >
102- <wait >true</wait >
103- <container >
104- <containerId >jetty8x</containerId >
105- <type >embedded</type >
106- <systemProperties >
107- <!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
108- </systemProperties >
109- </container >
110- <configuration >
111- <properties >
112- <cargo .servlet.port>8082</cargo .servlet.port>
113- </properties >
114- </configuration >
115- </configuration >
116- </plugin >
117-
118- </plugins >
119-
120- </build >
121-
122- <properties >
123- <!-- Spring -->
124- <org .springframework.version>3.2.4.RELEASE</org .springframework.version>
125- <org .springframework.security.version>3.1.4.RELEASE</org .springframework.security.version>
126-
127- <!-- persistence -->
128- <hibernate .version>4.2.4.Final</hibernate .version>
129- <mysql-connector-java .version>5.1.26</mysql-connector-java .version>
130-
131- <!-- logging -->
132- <org .slf4j.version>1.7.5</org .slf4j.version>
133- <logback .version>1.0.11</logback .version>
134-
135- <!-- various -->
136- <hibernate-validator .version>5.0.1.Final</hibernate-validator .version>
137-
138- <!-- util -->
139- <guava .version>14.0.1</guava .version>
140- <commons-lang3 .version>3.1</commons-lang3 .version>
141-
142- <!-- testing -->
143- <org .hamcrest.version>1.3</org .hamcrest.version>
144- <junit .version>4.11</junit .version>
145- <mockito .version>1.9.5</mockito .version>
146-
147- <httpcore .version>4.2.4</httpcore .version>
148- <httpclient .version>4.2.5</httpclient .version>
149-
150- <rest-assured .version>1.8.1</rest-assured .version>
151- <groovy .version>1.8.9</groovy .version>
152-
153- <!-- Maven plugins -->
154- <cargo-maven2-plugin .version>1.4.3</cargo-maven2-plugin .version>
155- <maven-surefire-plugin .version>2.16</maven-surefire-plugin .version>
156- </properties >
1+ <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/xsd/maven-4.0.0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >org.baeldung</groupId >
5+ <artifactId >spring-rest</artifactId >
6+ <version >0.1-SNAPSHOT</version >
7+
8+ <name >spring-rest</name >
9+
10+ <dependencies >
11+
12+ <!-- utils -->
13+
14+ <dependency >
15+ <groupId >com.google.guava</groupId >
16+ <artifactId >guava</artifactId >
17+ <version >15.0</version >
18+ </dependency >
19+
20+ <!-- web -->
21+
22+ <!-- test scoped -->
23+
24+ <dependency >
25+ <groupId >junit</groupId >
26+ <artifactId >junit-dep</artifactId >
27+ <version >${junit.version} </version >
28+ <scope >test</scope >
29+ </dependency >
30+
31+ <dependency >
32+ <groupId >org.hamcrest</groupId >
33+ <artifactId >hamcrest-core</artifactId >
34+ <version >${org.hamcrest.version} </version >
35+ <scope >test</scope >
36+ </dependency >
37+ <dependency >
38+ <groupId >org.hamcrest</groupId >
39+ <artifactId >hamcrest-library</artifactId >
40+ <version >${org.hamcrest.version} </version >
41+ <scope >test</scope >
42+ </dependency >
43+
44+ <dependency >
45+ <groupId >org.mockito</groupId >
46+ <artifactId >mockito-core</artifactId >
47+ <version >${mockito.version} </version >
48+ <scope >test</scope >
49+ </dependency >
50+
51+ </dependencies >
52+
53+ <build >
54+ <finalName >spring-rest</finalName >
55+ <resources >
56+ <resource >
57+ <directory >src/main/resources</directory >
58+ <filtering >true</filtering >
59+ </resource >
60+ </resources >
61+
62+ <plugins >
63+
64+ <plugin >
65+ <groupId >org.apache.maven.plugins</groupId >
66+ <artifactId >maven-surefire-plugin</artifactId >
67+ <version >${maven-surefire-plugin.version} </version >
68+ <configuration >
69+ <excludes >
70+ <!-- <exclude>**/*ProductionTest.java</exclude> -->
71+ </excludes >
72+ <systemPropertyVariables >
73+ <!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
74+ </systemPropertyVariables >
75+ </configuration >
76+ </plugin >
77+
78+ <plugin >
79+ <groupId >org.codehaus.cargo</groupId >
80+ <artifactId >cargo-maven2-plugin</artifactId >
81+ <version >${cargo-maven2-plugin.version} </version >
82+ <configuration >
83+ <wait >true</wait >
84+ <container >
85+ <containerId >jetty8x</containerId >
86+ <type >embedded</type >
87+ <systemProperties >
88+ <!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
89+ </systemProperties >
90+ </container >
91+ <configuration >
92+ <properties >
93+ <cargo .servlet.port>8082</cargo .servlet.port>
94+ </properties >
95+ </configuration >
96+ </configuration >
97+ </plugin >
98+
99+ </plugins >
100+
101+ </build >
102+
103+ <properties >
104+ <!-- Spring -->
105+ <org .springframework.version>3.2.4.RELEASE</org .springframework.version>
106+ <org .springframework.security.version>3.1.4.RELEASE</org .springframework.security.version>
107+
108+ <!-- persistence -->
109+ <hibernate .version>4.2.4.Final</hibernate .version>
110+ <mysql-connector-java .version>5.1.26</mysql-connector-java .version>
111+
112+ <!-- logging -->
113+ <org .slf4j.version>1.7.5</org .slf4j.version>
114+ <logback .version>1.0.11</logback .version>
115+
116+ <!-- various -->
117+ <hibernate-validator .version>5.0.1.Final</hibernate-validator .version>
118+
119+ <!-- util -->
120+ <guava .version>15.0</guava .version>
121+ <commons-lang3 .version>3.1</commons-lang3 .version>
122+
123+ <!-- testing -->
124+ <org .hamcrest.version>1.3</org .hamcrest.version>
125+ <junit .version>4.11</junit .version>
126+ <mockito .version>1.9.5</mockito .version>
127+
128+ <httpcore .version>4.2.4</httpcore .version>
129+ <httpclient .version>4.2.5</httpclient .version>
130+
131+ <rest-assured .version>1.8.1</rest-assured .version>
132+ <groovy .version>1.8.9</groovy .version>
133+
134+ <!-- Maven plugins -->
135+ <cargo-maven2-plugin .version>1.4.3</cargo-maven2-plugin .version>
136+ <maven-surefire-plugin .version>2.16</maven-surefire-plugin .version>
137+ </properties >
157138
158139</project >
0 commit comments