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            </exclusions>
172        </dependency>
173        <dependency>
174            <groupId>org.slf4j</groupId>
175            <artifactId>slf4j-api</artifactId>
176            <version>1.5.8</version>
177        </dependency>
178        <dependency>
179            <groupId>org.slf4j</groupId>
180            <artifactId>slf4j-log4j12</artifactId>
181            <version>1.5.8</version>
182        </dependency>
183
184        <dependency>
185            <groupId>hsqldb</groupId>
186            <artifactId>hsqldb</artifactId>
187            <version>1.8.0.7</version>
188        </dependency>
189        <dependency>
190            <groupId>javax.el</groupId>
191            <artifactId>el-api</artifactId>
192            <version>1.0</version>
193            <scope>provided</scope>
194        </dependency>
195        <dependency>
196            <groupId>javax.servlet.jsp</groupId>
197            <artifactId>jsp-api</artifactId>
198            <version>2.1</version>
199            <scope>provided</scope>
200        </dependency>
201
202        <dependency>
203            <groupId>javax.annotation</groupId>
204            <artifactId>jsr250-api</artifactId>
205            <version>1.0</version>
206        </dependency>
207
208        <dependency>
209            <groupId>javax.persistence</groupId>
210            <artifactId>persistence-api</artifactId>
211            <version>1.0</version>
212        </dependency>
213
214        <dependency>
215            <groupId>junit</groupId>
216            <artifactId>junit</artifactId>
217            <version>4.7</version>
218            <scope>test</scope>
219        </dependency>
220        <dependency>
221            <groupId>org.easymock</groupId>
222            <artifactId>easymock</artifactId>
223            <version>2.5.2</version>
224            <scope>test</scope>
225        </dependency>
226        <dependency>
227            <groupId>org.springframework</groupId>
228            <artifactId>spring-test</artifactId>
229            <version>${spring.version}</version>
230            <scope>test</scope>
231        </dependency>
232        <dependency>
233            <groupId>org.unitils</groupId>
234            <artifactId>unitils-easymock</artifactId>
235            <version>3.1</version>
236            <scope>test</scope>
237        </dependency>
238        <dependency>
239            <groupId>org.unitils</groupId>
240            <artifactId>unitils-inject</artifactId>
241            <version>3.1</version>
242            <scope>test</scope>
243        </dependency>
244
245    </dependencies>
246
247
248    <dependencyManagement>
249        <dependencies>
250            <dependency>
251                <groupId>javax.mail</groupId>
252                <artifactId>mail</artifactId>
253                <version>1.4.2</version>
254            </dependency>
255        </dependencies>
256    </dependencyManagement>
257</project>
258

Archive Download this file

Branches