11<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-mvc-java</artifactId >
5- <version >0.1-SNAPSHOT</version >
6-
7- <name >spring-mvc-java</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-mvc</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 >
2+ <modelVersion >4.0.0</modelVersion >
3+ <groupId >org.baeldung</groupId >
4+ <artifactId >spring-mvc-java</artifactId >
5+ <version >0.1-SNAPSHOT</version >
6+
7+ <name >spring-mvc-java</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-mvc</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+ <plugin >
119+ <artifactId >maven-compiler-plugin</artifactId >
120+ <version >${maven-compiler-plugin.version} </version >
121+ <configuration >
122+ <source >1.6</source >
123+ <target >1.6</target >
124+ </configuration >
125+ </plugin >
126+
127+ <plugin >
128+ <groupId >org.apache.maven.plugins</groupId >
129+ <artifactId >maven-war-plugin</artifactId >
130+ <version >2.4</version >
131+ <configuration >
132+ <failOnMissingWebXml >false</failOnMissingWebXml >
133+ </configuration >
134+ </plugin >
135+
136+ </plugins >
137+
138+ </build >
139+
140+ <properties >
141+ <!-- Spring -->
142+ <org .springframework.version>3.2.5.RELEASE</org .springframework.version>
143+ <org .springframework.security.version>3.1.4.RELEASE</org .springframework.security.version>
144+
145+ <!-- persistence -->
146+ <hibernate .version>4.2.8.Final</hibernate .version>
147+ <mysql-connector-java .version>5.1.27</mysql-connector-java .version>
148+
149+ <!-- logging -->
150+ <org .slf4j.version>1.7.5</org .slf4j.version>
151+ <logback .version>1.0.11</logback .version>
152+
153+ <!-- various -->
154+ <hibernate-validator .version>5.0.1.Final</hibernate-validator .version>
155+
156+ <!-- util -->
157+ <guava .version>15.0</guava .version>
158+ <commons-lang3 .version>3.1</commons-lang3 .version>
159+
160+ <!-- testing -->
161+ <org .hamcrest.version>1.3</org .hamcrest.version>
162+ <junit .version>4.11</junit .version>
163+ <mockito .version>1.9.5</mockito .version>
164+
165+ <httpcore .version>4.3</httpcore .version>
166+ <httpclient .version>4.3.1</httpclient .version>
167+
168+ <rest-assured .version>2.0.1</rest-assured .version>
169+ <groovy .version>1.8.9</groovy .version>
170+
171+ <!-- maven plugins -->
172+ <cargo-maven2-plugin .version>1.4.5</cargo-maven2-plugin .version>
173+ <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
174+ <maven-resources-plugin .version>2.6</maven-resources-plugin .version>
175+ <maven-surefire-plugin .version>2.16</maven-surefire-plugin .version>
176+
177+ </properties >
157178
158179</project >
0 commit comments