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 >com.baeldung</groupId >
5+ <version >0.1-SNAPSHOT</version >
6+ <artifactId >spring-mvc-velocity</artifactId >
7+
8+ <name >spring-mvc-velocity</name >
9+ <packaging >war</packaging >
10+
11+ <dependencies >
12+
13+ <!-- Spring -->
14+
15+ <dependency >
16+ <groupId >org.springframework</groupId >
17+ <artifactId >spring-web</artifactId >
18+ <version >${org.springframework.version} </version >
19+ </dependency >
20+ <dependency >
21+ <groupId >org.springframework</groupId >
22+ <artifactId >spring-webmvc</artifactId >
23+ <version >${org.springframework.version} </version >
24+ </dependency >
25+ <dependency >
26+ <groupId >org.springframework</groupId >
27+ <artifactId >spring-core</artifactId >
28+ <version >${org.springframework.version} </version >
29+ </dependency >
30+ <dependency >
31+ <groupId >org.springframework</groupId >
32+ <artifactId >spring-context-support</artifactId >
33+ <version >${org.springframework.version} </version >
34+ </dependency >
35+
36+ <!-- web -->
37+
38+ <dependency >
39+ <groupId >javax.servlet</groupId >
40+ <artifactId >javax.servlet-api</artifactId >
41+ <version >3.1.0</version >
42+ <scope >provided</scope >
43+ </dependency >
44+
45+ <dependency >
46+ <groupId >org.apache.velocity</groupId >
47+ <artifactId >velocity</artifactId >
48+ <version >1.7</version >
49+ </dependency >
50+
51+ <dependency >
52+ <groupId >org.apache.velocity</groupId >
53+ <artifactId >velocity-tools</artifactId >
54+ <version >2.0</version >
55+ </dependency >
56+
57+ <!-- test scoped -->
58+
59+ <dependency >
60+ <groupId >junit</groupId >
61+ <artifactId >junit</artifactId >
62+ <version >${junit.version} </version >
63+ <scope >test</scope >
64+ </dependency >
65+
66+ <dependency >
67+ <groupId >org.hamcrest</groupId >
68+ <artifactId >hamcrest-core</artifactId >
69+ <version >${org.hamcrest.version} </version >
70+ <scope >test</scope >
71+ </dependency >
72+ <dependency >
73+ <groupId >org.hamcrest</groupId >
74+ <artifactId >hamcrest-library</artifactId >
75+ <version >${org.hamcrest.version} </version >
76+ <scope >test</scope >
77+ </dependency >
78+
79+ <dependency >
80+ <groupId >org.mockito</groupId >
81+ <artifactId >mockito-core</artifactId >
82+ <version >${mockito.version} </version >
83+ <scope >test</scope >
84+ </dependency >
85+
86+ <dependency >
87+ <groupId >org.powermock</groupId >
88+ <artifactId >powermock-module-junit4</artifactId >
89+ <version >${powermock.version} </version >
90+ <scope >test</scope >
91+ </dependency >
92+ <dependency >
93+ <groupId >org.powermock</groupId >
94+ <artifactId >powermock-api-mockito</artifactId >
95+ <version >${powermock.version} </version >
96+ <scope >test</scope >
97+ </dependency >
98+
99+ </dependencies >
100+
101+ <build >
102+ <finalName >spring-mvc-velocity</finalName >
103+ <resources >
104+ <resource >
105+ <directory >src/main/resources</directory >
106+ <filtering >true</filtering >
107+ </resource >
108+ </resources >
109+
110+ <plugins >
111+ <plugin >
112+ <groupId >org.apache.maven.plugins</groupId >
113+ <artifactId >maven-compiler-plugin</artifactId >
114+ <version >${maven-compiler-plugin.version} </version >
115+ <configuration >
116+ <source >1.8</source >
117+ <target >1.8</target >
118+ </configuration >
119+ </plugin >
120+
121+ <plugin >
122+ <groupId >org.apache.maven.plugins</groupId >
123+ <artifactId >maven-war-plugin</artifactId >
124+ <version >${maven-war-plugin.version} </version >
125+ </plugin >
126+
127+ <plugin >
128+ <groupId >org.apache.maven.plugins</groupId >
129+ <artifactId >maven-surefire-plugin</artifactId >
130+ <version >${maven-surefire-plugin.version} </version >
131+ <configuration >
132+ <excludes >
133+ <!-- <exclude>**/*ProductionTest.java</exclude> -->
134+ </excludes >
135+ <systemPropertyVariables >
136+ <!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
137+ </systemPropertyVariables >
138+ </configuration >
139+ </plugin >
140+
141+ </plugins >
142+
143+ </build >
144+
145+ <properties >
146+ <!-- Spring -->
147+ <org .springframework.version>4.1.4.RELEASE</org .springframework.version>
148+
149+
150+ <!-- testing -->
151+ <org .hamcrest.version>1.3</org .hamcrest.version>
152+ <junit .version>4.12</junit .version>
153+ <mockito .version>1.10.19</mockito .version>
154+ <powermock .version>1.6.4</powermock .version>
155+
156+ <httpcore .version>4.4.1</httpcore .version>
157+ <httpclient .version>4.5</httpclient .version>
158+
159+ <rest-assured .version>2.4.1</rest-assured .version>
160+
161+ <!-- Maven plugins -->
162+ <maven-compiler-plugin .version>3.5.1</maven-compiler-plugin .version>
163+ <maven-war-plugin .version>2.6</maven-war-plugin .version>
164+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
165+ <maven-resources-plugin .version>2.7</maven-resources-plugin .version>
166+ <cargo-maven2-plugin .version>1.4.18</cargo-maven2-plugin .version>
167+
168+ </properties >
169+
170+ </project >
0 commit comments