-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
176 lines (155 loc) · 7.3 KB
/
pom.xml
File metadata and controls
176 lines (155 loc) · 7.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?xml version="1.0" encoding="UTF-8"?>
<!-- pom - project object entity -->
<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">
<!-- The modelVersion element sets what version of the POM model
you are using. Use the one matching the Maven version you are using.
Version 4.0.0 matches Maven version 2 and 3. -->
<modelVersion>4.0.0</modelVersion>
<!-- group or organization that this project belongs to
often inverted domain name -->
<groupId>com.marcuschiu</groupId>
<!-- name given to this project library -->
<artifactId>SpringBasicExample</artifactId>
<!-- version name of this project -->
<version>1.0-SNAPSHOT</version>
<!-- how this project should be packaged jar(default) or war -->
<!-- name of jar or war file will be artifact id + version -->
<!-- needed so Tomcat can load the artifact exploded -->
<packaging>war</packaging>
<name>Spring Basic Example</name>
<url>http://maven.apache.org</url>
<!-- variables used in dependencies below -->
<properties>
<springframework.version>4.0.6.RELEASE</springframework.version>
<org.springframework-security-version>4.0.2.RELEASE</org.springframework-security-version>
</properties>
<dependencies>
<!-- this is where you get dependencies -->
<!-- https://mvnrepository.com/ -->
<!-- Example Dependency
<dependency>
//The group/organization this belongs to
<groupId>mysql</groupId>
//The library that's required
<artifactId>mysql-connector-java</artifactId>
//The version of the requested library
<version>5.1.34</version>
// scope
// 'compile' by default - which is ready at compile time
// 'provided' - will be provided at runtime by a container running the code
// 'test' - used for compiling tests, but not required for building/running code
// 'runtime' - This scope indicates that the dependency is not required for compilation,
but is for execution. It is in the runtime and test classpaths, but not
the compile classpath.
// 'system' - This scope is similar to provided except that you have to provide the JAR
which contains it explicitly. The artifact is always available and is not
looked up in a repository. import (only available in Maven 2.0.9 or later):
This scope is only used on a dependency of type pom in the section.
It indicates that the specified POM should be replaced with the dependencies
in that POM's section. Since they are replaced, dependencies with a scope of
import do not actually participate in limiting the transitivity of a dependency.
<scope>runtime</scope>
</dependency>
-->
<!-- SPRING - START -->
<!-- Spring Core - START -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springframework.version}</version>
</dependency>
<!-- Spring Core - END -->
<!-- Spring Security - START -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${org.springframework-security-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${org.springframework-security-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${org.springframework-security-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>${org.springframework-security-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-cas</artifactId>
<version>${org.springframework-security-version}</version>
</dependency>
<!-- Spring Security - START -->
<!-- SPRING - END -->
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<!-- JSP -->
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- JSTL -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- needed for CommonsMultipartResolver bean -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<!-- maven-war-plugin allows us to use full annotation a_configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<!-- configures plugin to build war package -->
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<warName>SpringBasicExample</warName>
<failOnMissingWebXml>false</failOnMissingWebXml><!-- because we replace web.xml with java AppInitializer -->
</configuration>
</plugin>
</plugins>
</pluginManagement>
<finalName>SpringBasicExample</finalName>
</build>
</project>