Spring MVC Example

Spring MVC Example Git Source Tree

Root/pom.xml

1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4    <modelVersion>4.0.0</modelVersion>
5    <groupId>info.ahlberg</groupId>
6    <artifactId>spring-mvc-template</artifactId>
7    <packaging>war</packaging>
8    <version>1.0-SNAPSHOT</version>
9    <name>spring-mvc-template</name>
10    <url>http://ahlberg.info</url>
11    <properties>
12        <spring.version>3.0.6.RELEASE</spring.version>
13    </properties>
14
15    <repositories>
16        <repository>
17            <id>central</id>
18            <url>http://repo1.maven.org/maven2</url>
19        </repository>
20        <repository>
21            <id>maven2.java.net</id>
22            <url>http://download.java.net/maven/2</url>
23        </repository>
24        <repository>
25            <id>java.net2</id>
26            <url>http://download.java.net/maven/2</url>
27        </repository>
28        <repository>
29            <id>maven2.jboss.org</id>
30            <url>http://repository.jboss.org/maven2</url>
31        </repository>
32    </repositories>
33
34    <build>
35        <plugins>
36            <plugin>
37                <groupId>org.codehaus.mojo</groupId>
38                <artifactId>tomcat-maven-plugin
39                </artifactId>
40                <configuration>
41                    <warFile>target/spring-mvc-template.war</warFile>
42                    <contextFile>context.xml</contextFile>
43                </configuration>
44            </plugin>
45            <plugin>
46                <groupId>org.apache.maven.plugins
47                </groupId>
48                <artifactId>maven-eclipse-plugin
49                </artifactId>
50                <version>2.8</version>
51                <configuration>
52                    <projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
53                    <wtpmanifest>true</wtpmanifest>
54                    <wtpapplicationxml>true</wtpapplicationxml>
55                    <wtpversion>2.0</wtpversion>
56                    <manifest>${basedir}/src/main/resources/META-INF/MANIFEST.MF</manifest>
57                    <downloadSources>true</downloadSources>
58                    <downloadJavadocs>true</downloadJavadocs>
59                </configuration>
60            </plugin>
61            <plugin>
62                <artifactId>maven-compiler-plugin</artifactId>
63                <configuration>
64                    <source>1.6</source>
65                    <target>1.6</target>
66                    <encoding>UTF-8</encoding>
67                </configuration>
68            </plugin>
69            <plugin>
70                <artifactId>maven-resources-plugin</artifactId>
71                <configuration>
72                    <encoding>UTF-8</encoding>
73                </configuration>
74            </plugin>
75        </plugins>
76        <finalName>gallery</finalName>
77    </build>
78
79    <dependencies>
80        <dependency>
81            <groupId>org.springframework</groupId>
82            <artifactId>spring-core</artifactId>
83            <version>${spring.version}</version>
84        </dependency>
85        <dependency>
86            <groupId>org.springframework</groupId>
87            <artifactId>spring-web</artifactId>
88            <version>${spring.version}</version>
89        </dependency>
90        <dependency>
91            <groupId>org.springframework</groupId>
92            <artifactId>spring-webmvc</artifactId>
93            <version>${spring.version}</version>
94        </dependency>
95        <dependency>
96            <groupId>org.springframework</groupId>
97            <artifactId>spring-orm</artifactId>
98            <version>${spring.version}</version>
99        </dependency>
100        <dependency>
101            <groupId>org.springframework</groupId>
102            <artifactId>spring-jdbc</artifactId>
103            <version>${spring.version}</version>
104        </dependency>
105        <dependency>
106            <groupId>org.springframework</groupId>
107            <artifactId>spring-context</artifactId>
108            <version>${spring.version}</version>
109        </dependency>
110        <dependency>
111            <groupId>org.springframework</groupId>
112            <artifactId>spring-aop</artifactId>
113            <version>${spring.version}</version>
114        </dependency>
115
116
117        <dependency>
118            <groupId>org.codehaus.jackson</groupId>
119            <artifactId>jackson-mapper-lgpl</artifactId>
120            <version>1.8.1</version>
121        </dependency>
122
123
124        <dependency>
125            <groupId>jstl</groupId>
126            <artifactId>jstl</artifactId>
127            <version>1.2</version>
128        </dependency>
129        <dependency>
130            <groupId>javax.persistence</groupId>
131            <artifactId>persistence-api</artifactId>
132            <version>1.0</version>
133        </dependency>
134        <dependency>
135            <groupId>javax.servlet</groupId>
136            <artifactId>servlet-api</artifactId>
137            <version>2.5</version>
138            <scope>provided</scope>
139        </dependency>
140        <dependency>
141            <groupId>org.hibernate</groupId>
142            <artifactId>hibernate</artifactId>
143            <version>3.2.6.ga</version>
144        </dependency>
145        <dependency>
146            <groupId>org.hibernate</groupId>
147            <artifactId>hibernate-annotations
148            </artifactId>
149            <version>3.3.1.GA</version>
150        </dependency>
151        <dependency>
152            <groupId>org.hibernate</groupId>
153            <artifactId>hibernate-entitymanager
154            </artifactId>
155            <version>3.3.2.GA</version>
156        </dependency>
157
158        <dependency>
159            <groupId>log4j</groupId>
160            <artifactId>log4j</artifactId>
161            <version>1.2.15</version>
162            <exclusions>
163                <exclusion>
164                    <groupId>com.sun.jmx</groupId>
165                    <artifactId>jmxri</artifactId>
166                </exclusion>
167                <exclusion>
168                    <groupId>com.sun.jdmk</groupId>
169                    <artifactId>jmxtools</artifactId>
170                </exclusion>
171                <exclusion>
172                    <groupId>javax.jms</groupId>
173                    <artifactId>jms</artifactId>
174                </exclusion>
175            </exclusions>
176        </dependency>
177        <dependency>
178            <groupId>org.slf4j</groupId>
179            <artifactId>slf4j-api</artifactId>
180            <version>1.5.8</version>
181        </dependency>
182        <dependency>
183            <groupId>org.slf4j</groupId>
184            <artifactId>slf4j-log4j12</artifactId>
185            <version>1.5.8</version>
186        </dependency>
187
188        <dependency>
189            <groupId>hsqldb</groupId>
190            <artifactId>hsqldb</artifactId>
191            <version>1.8.0.7</version>
192        </dependency>
193        <dependency>
194            <groupId>javax.el</groupId>
195            <artifactId>el-api</artifactId>
196            <version>1.0</version>
197            <scope>provided</scope>
198        </dependency>
199        <dependency>
200            <groupId>javax.servlet.jsp</groupId>
201            <artifactId>jsp-api</artifactId>
202            <version>2.1</version>
203            <scope>provided</scope>
204        </dependency>
205
206        <dependency>
207            <groupId>javax.annotation</groupId>
208            <artifactId>jsr250-api</artifactId>
209            <version>1.0</version>
210        </dependency>
211
212        <dependency>
213            <groupId>javax.persistence</groupId>
214            <artifactId>persistence-api</artifactId>
215            <version>1.0</version>
216        </dependency>
217
218        <dependency>
219            <groupId>junit</groupId>
220            <artifactId>junit</artifactId>
221            <version>4.7</version>
222            <scope>test</scope>
223        </dependency>
224        <dependency>
225            <groupId>org.easymock</groupId>
226            <artifactId>easymock</artifactId>
227            <version>2.5.2</version>
228            <scope>test</scope>
229        </dependency>
230        <dependency>
231            <groupId>org.springframework</groupId>
232            <artifactId>spring-test</artifactId>
233            <version>${spring.version}</version>
234            <scope>test</scope>
235        </dependency>
236        <dependency>
237            <groupId>org.unitils</groupId>
238            <artifactId>unitils-easymock</artifactId>
239            <version>3.1</version>
240            <scope>test</scope>
241        </dependency>
242        <dependency>
243            <groupId>org.unitils</groupId>
244            <artifactId>unitils-inject</artifactId>
245            <version>3.1</version>
246            <scope>test</scope>
247        </dependency>
248
249    </dependencies>
250
251
252    <dependencyManagement>
253        <dependencies>
254            <dependency>
255                <groupId>javax.mail</groupId>
256                <artifactId>mail</artifactId>
257                <version>1.4.2</version>
258            </dependency>
259        </dependencies>
260    </dependencyManagement>
261</project>
262

Archive Download this file

Branches