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" >
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" >
23 <modelVersion >4.0.0</modelVersion >
34 <groupId >org.baeldung</groupId >
45 <artifactId >spring-mvc-java</artifactId >
56 <version >0.1-SNAPSHOT</version >
6-
77 <name >spring-mvc-java</name >
88 <packaging >war</packaging >
9-
109 <dependencies >
11-
1210 <!-- Spring -->
13-
1411 <dependency >
1512 <groupId >org.springframework</groupId >
1613 <artifactId >spring-web</artifactId >
2118 <artifactId >spring-webmvc</artifactId >
2219 <version >${org.springframework.version} </version >
2320 </dependency >
24-
2521 <!-- web -->
26-
2722 <dependency >
2823 <groupId >javax.servlet</groupId >
2924 <artifactId >javax.servlet-api</artifactId >
3025 <version >3.0.1</version >
3126 <scope >provided</scope >
3227 </dependency >
33-
3428 <dependency >
3529 <groupId >javax.servlet</groupId >
3630 <artifactId >jstl</artifactId >
3731 <version >1.2</version >
3832 <scope >runtime</scope >
3933 </dependency >
40-
4134 <!-- AOP -->
4235 <dependency >
4336 <groupId >org.springframework</groupId >
4437 <artifactId >spring-aop</artifactId >
4538 <version >${org.springframework.version} </version >
4639 </dependency >
47-
4840 <dependency >
4941 <groupId >org.aspectj</groupId >
5042 <artifactId >aspectjrt</artifactId >
5143 <version >${aspectj.version} </version >
5244 </dependency >
53-
5445 <dependency >
5546 <groupId >org.aspectj</groupId >
5647 <artifactId >aspectjweaver</artifactId >
5748 <version >${aspectj.version} </version >
5849 </dependency >
59-
6050 <!-- logging -->
6151 <dependency >
6252 <groupId >org.slf4j</groupId >
6353 <artifactId >slf4j-api</artifactId >
6454 <version >${org.slf4j.version} </version >
6555 </dependency >
66-
6756 <dependency >
6857 <groupId >org.slf4j</groupId >
6958 <artifactId >slf4j-log4j12</artifactId >
7059 <version >${org.slf4j.version} </version >
7160 </dependency >
72-
7361 <!-- test scoped -->
74-
7562 <dependency >
7663 <groupId >junit</groupId >
7764 <artifactId >junit-dep</artifactId >
7865 <version >${junit.version} </version >
7966 <scope >test</scope >
8067 </dependency >
81-
8268 <dependency >
8369 <groupId >org.hamcrest</groupId >
8470 <artifactId >hamcrest-core</artifactId >
9177 <version >${org.hamcrest.version} </version >
9278 <scope >test</scope >
9379 </dependency >
94-
9580 <dependency >
9681 <groupId >org.mockito</groupId >
9782 <artifactId >mockito-core</artifactId >
9883 <version >${mockito.version} </version >
9984 <scope >test</scope >
10085 </dependency >
101-
10286 <dependency >
10387 <groupId >org.springframework</groupId >
10488 <artifactId >spring-test</artifactId >
10589 <version >${org.springframework.version} </version >
10690 <scope >test</scope >
10791 </dependency >
108-
92+ <!-- Thymeleaf -->
93+ <dependency >
94+ <groupId >org.thymeleaf</groupId >
95+ <artifactId >thymeleaf-spring4</artifactId >
96+ <version >${thymeleaf.version} </version >
97+ </dependency >
98+ <dependency >
99+ <groupId >org.thymeleaf</groupId >
100+ <artifactId >thymeleaf</artifactId >
101+ <version >${thymeleaf.version} </version >
102+ </dependency >
109103 </dependencies >
110-
111104 <build >
112105 <finalName >spring-mvc-java</finalName >
113106 <resources >
116109 <filtering >true</filtering >
117110 </resource >
118111 </resources >
119-
120112 <plugins >
121-
122113 <plugin >
123114 <groupId >org.apache.maven.plugins</groupId >
124115 <artifactId >maven-compiler-plugin</artifactId >
128119 <target >1.8</target >
129120 </configuration >
130121 </plugin >
131-
122+ <plugin >
123+ <artifactId >maven-resources-plugin</artifactId >
124+ <version >2.7</version >
125+ </plugin >
132126 <plugin >
133127 <groupId >org.apache.maven.plugins</groupId >
134128 <artifactId >maven-war-plugin</artifactId >
137131 <failOnMissingWebXml >false</failOnMissingWebXml >
138132 </configuration >
139133 </plugin >
140-
141134 <plugin >
142135 <groupId >org.apache.maven.plugins</groupId >
143136 <artifactId >maven-surefire-plugin</artifactId >
151144 </systemPropertyVariables >
152145 </configuration >
153146 </plugin >
154-
155147 <plugin >
156148 <groupId >org.codehaus.cargo</groupId >
157149 <artifactId >cargo-maven2-plugin</artifactId >
172164 </configuration >
173165 </configuration >
174166 </plugin >
175-
176167 </plugins >
177-
178168 </build >
179-
180169 <properties >
181170 <!-- Spring -->
182171 <org .springframework.version>4.2.2.RELEASE</org .springframework.version>
183172 <org .springframework.security.version>4.0.2.RELEASE</org .springframework.security.version>
184-
173+ < thymeleaf .version>2.1.4.RELEASE</ thymeleaf .version>
185174 <!-- persistence -->
186175 <hibernate .version>4.3.11.Final</hibernate .version>
187176 <mysql-connector-java .version>5.1.36</mysql-connector-java .version>
188-
189177 <!-- logging -->
190178 <org .slf4j.version>1.7.12</org .slf4j.version>
191179 <logback .version>1.1.3</logback .version>
192-
193180 <!-- various -->
194181 <hibernate-validator .version>5.2.1.Final</hibernate-validator .version>
195-
196182 <!-- util -->
197183 <guava .version>18.0</guava .version>
198184 <commons-lang3 .version>3.4</commons-lang3 .version>
199-
200185 <!-- testing -->
201186 <org .hamcrest.version>1.3</org .hamcrest.version>
202187 <junit .version>4.11</junit .version>
203188 <mockito .version>1.10.19</mockito .version>
204-
205189 <httpcore .version>4.4.1</httpcore .version>
206190 <httpclient .version>4.5</httpclient .version>
207-
208191 <rest-assured .version>2.4.1</rest-assured .version>
209-
210192 <!-- maven plugins -->
211193 <maven-compiler-plugin .version>3.3</maven-compiler-plugin .version>
212194 <maven-war-plugin .version>2.6</maven-war-plugin .version>
213195 <maven-surefire-plugin .version>2.18.1</maven-surefire-plugin .version>
214196 <maven-resources-plugin .version>2.7</maven-resources-plugin .version>
215197 <cargo-maven2-plugin .version>1.4.15</cargo-maven2-plugin .version>
216-
217198 <!-- AspectJ -->
218199 <aspectj .version>1.8.7</aspectj .version>
219200 </properties >
220-
221201</project >
0 commit comments