|
7 | 7 | <name>spring-mvc-showcase</name>
|
8 | 8 | <packaging>war</packaging>
|
9 | 9 | <version>1.0.0-BUILD-SNAPSHOT</version>
|
| 10 | + |
10 | 11 | <properties>
|
11 |
| - <java-version>1.7</java-version> |
12 |
| - <org.springframework-version>4.2.2.RELEASE</org.springframework-version> |
13 |
| - <org.springframework.security-version>4.0.1.RELEASE</org.springframework.security-version> |
| 12 | + <java-version>1.8</java-version> |
| 13 | + <org.springframework-version>5.0.3.RELEASE</org.springframework-version> |
14 | 14 | <org.aspectj-version>1.8.1</org.aspectj-version>
|
15 |
| - <org.slf4j-version>1.7.12</org.slf4j-version> |
16 | 15 | </properties>
|
| 16 | + |
17 | 17 | <dependencies>
|
18 | 18 | <!-- Spring -->
|
19 | 19 | <dependency>
|
20 | 20 | <groupId>org.springframework</groupId>
|
21 | 21 | <artifactId>spring-context</artifactId>
|
22 | 22 | <version>${org.springframework-version}</version>
|
23 |
| - <exclusions> |
24 |
| - <!-- Exclude Commons Logging in favor of SLF4j --> |
25 |
| - <exclusion> |
26 |
| - <groupId>commons-logging</groupId> |
27 |
| - <artifactId>commons-logging</artifactId> |
28 |
| - </exclusion> |
29 |
| - </exclusions> |
30 | 23 | </dependency>
|
31 | 24 | <dependency>
|
32 | 25 | <groupId>org.springframework</groupId>
|
33 | 26 | <artifactId>spring-webmvc</artifactId>
|
34 | 27 | <version>${org.springframework-version}</version>
|
35 | 28 | </dependency>
|
| 29 | + |
| 30 | + <!-- Spring Security (used for CSRF protection only) --> |
| 31 | + <dependency> |
| 32 | + <groupId>org.springframework.security</groupId> |
| 33 | + <artifactId>spring-security-web</artifactId> |
| 34 | + <version>5.0.0.RELEASE</version> |
| 35 | + </dependency> |
| 36 | + |
36 | 37 | <!-- AspectJ -->
|
37 | 38 | <dependency>
|
38 | 39 | <groupId>org.aspectj</groupId>
|
|
42 | 43 |
|
43 | 44 | <!-- Logging -->
|
44 | 45 | <dependency>
|
45 |
| - <groupId>org.slf4j</groupId> |
46 |
| - <artifactId>slf4j-api</artifactId> |
47 |
| - <version>${org.slf4j-version}</version> |
48 |
| - </dependency> |
49 |
| - <dependency> |
50 |
| - <groupId>org.slf4j</groupId> |
51 |
| - <artifactId>jcl-over-slf4j</artifactId> |
52 |
| - <version>${org.slf4j-version}</version> |
53 |
| - <scope>runtime</scope> |
| 46 | + <groupId>org.apache.logging.log4j</groupId> |
| 47 | + <artifactId>log4j-core</artifactId> |
| 48 | + <version>LATEST</version> |
54 | 49 | </dependency>
|
55 | 50 | <dependency>
|
56 |
| - <groupId>org.slf4j</groupId> |
57 |
| - <artifactId>slf4j-log4j12</artifactId> |
58 |
| - <version>${org.slf4j-version}</version> |
59 |
| - <scope>runtime</scope> |
60 |
| - </dependency> |
61 |
| - <dependency> |
62 |
| - <groupId>log4j</groupId> |
63 |
| - <artifactId>log4j</artifactId> |
64 |
| - <version>1.2.16</version> |
65 |
| - <scope>runtime</scope> |
| 51 | + <groupId>org.apache.logging.log4j</groupId> |
| 52 | + <artifactId>log4j-slf4j-impl</artifactId> |
| 53 | + <version>LATEST</version> |
66 | 54 | </dependency>
|
67 | 55 |
|
68 | 56 | <!-- @Inject -->
|
|
72 | 60 | <version>1</version>
|
73 | 61 | </dependency>
|
74 | 62 |
|
75 |
| - <!-- Servlet --> |
| 63 | + <!-- Servlet API --> |
76 | 64 | <dependency>
|
77 |
| - <groupId>org.apache.tomcat</groupId> |
78 |
| - <artifactId>tomcat-servlet-api</artifactId> |
79 |
| - <version>7.0.30</version> |
| 65 | + <groupId>javax.servlet</groupId> |
| 66 | + <artifactId>javax.servlet-api</artifactId> |
| 67 | + <version>3.1.0</version> |
80 | 68 | <scope>provided</scope>
|
81 | 69 | </dependency>
|
82 | 70 | <dependency>
|
83 | 71 | <groupId>javax.servlet.jsp</groupId>
|
84 |
| - <artifactId>jsp-api</artifactId> |
85 |
| - <version>2.1</version> |
| 72 | + <artifactId>javax.servlet.jsp-api</artifactId> |
| 73 | + <version>2.3.2-b02</version> |
86 | 74 | <scope>provided</scope>
|
87 | 75 | </dependency>
|
88 | 76 | <dependency>
|
89 | 77 | <groupId>javax.servlet.jsp.jstl</groupId>
|
90 |
| - <artifactId>jstl-api</artifactId> |
91 |
| - <version>1.2</version> |
92 |
| - <exclusions> |
93 |
| - <exclusion> |
94 |
| - <groupId>javax.servlet</groupId> |
95 |
| - <artifactId>servlet-api</artifactId> |
96 |
| - </exclusion> |
97 |
| - </exclusions> |
98 |
| - </dependency> |
99 |
| - <dependency> |
100 |
| - <groupId>org.glassfish.web</groupId> |
101 |
| - <artifactId>jstl-impl</artifactId> |
102 |
| - <version>1.2</version> |
103 |
| - <exclusions> |
104 |
| - <exclusion> |
105 |
| - <groupId>javax.servlet</groupId> |
106 |
| - <artifactId>servlet-api</artifactId> |
107 |
| - </exclusion> |
108 |
| - </exclusions> |
| 78 | + <artifactId>javax.servlet.jsp.jstl-api</artifactId> |
| 79 | + <version>1.2.1</version> |
109 | 80 | </dependency>
|
110 | 81 |
|
111 | 82 | <!-- Jackson JSON Processor -->
|
112 | 83 | <dependency>
|
113 | 84 | <groupId>com.fasterxml.jackson.core</groupId>
|
114 | 85 | <artifactId>jackson-databind</artifactId>
|
115 |
| - <version>2.5.3</version> |
| 86 | + <version>2.9.3</version> |
116 | 87 | </dependency>
|
117 | 88 |
|
118 | 89 | <!-- Rome Atom+RSS -->
|
119 | 90 | <dependency>
|
120 | 91 | <groupId>com.rometools</groupId>
|
121 | 92 | <artifactId>rome</artifactId>
|
122 |
| - <version>1.5.0</version> |
| 93 | + <version>1.9.0</version> |
123 | 94 | </dependency>
|
124 | 95 |
|
125 | 96 | <!-- JSR 303 with Hibernate Validator -->
|
126 | 97 | <dependency>
|
127 | 98 | <groupId>javax.validation</groupId>
|
128 | 99 | <artifactId>validation-api</artifactId>
|
129 |
| - <version>1.0.0.GA</version> |
| 100 | + <version>2.0.1.Final</version> |
130 | 101 | </dependency>
|
131 | 102 | <dependency>
|
132 | 103 | <groupId>org.hibernate</groupId>
|
133 | 104 | <artifactId>hibernate-validator</artifactId>
|
134 |
| - <version>4.1.0.Final</version> |
| 105 | + <version>6.0.7.Final</version> |
135 | 106 | </dependency>
|
136 |
| - |
| 107 | + <dependency> |
| 108 | + <groupId>javax.el</groupId> |
| 109 | + <artifactId>javax.el-api</artifactId> |
| 110 | + <version>3.0.1-b04</version> |
| 111 | + </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>org.glassfish</groupId> |
| 114 | + <artifactId>javax.el</artifactId> |
| 115 | + <version>3.0.1-b08</version> |
| 116 | + </dependency> |
| 117 | + |
137 | 118 | <!-- Joda Time Library -->
|
138 | 119 | <dependency>
|
139 | 120 | <groupId>joda-time</groupId>
|
140 | 121 | <artifactId>joda-time</artifactId>
|
141 |
| - <version>2.3</version> |
| 122 | + <version>2.9.9</version> |
142 | 123 | </dependency>
|
143 | 124 |
|
144 | 125 | <!-- File Upload -->
|
145 | 126 | <dependency>
|
146 | 127 | <groupId>commons-fileupload</groupId>
|
147 | 128 | <artifactId>commons-fileupload</artifactId>
|
148 |
| - <version>1.2.2</version> |
| 129 | + <version>1.3.3</version> |
149 | 130 | </dependency>
|
150 | 131 | <dependency>
|
151 | 132 | <groupId>commons-io</groupId>
|
152 | 133 | <artifactId>commons-io</artifactId>
|
153 |
| - <version>2.0.1</version> |
| 134 | + <version>2.5</version> |
154 | 135 | </dependency>
|
155 | 136 |
|
156 |
| - <!-- Security (used for CSRF protection only) --> |
157 |
| - <dependency> |
158 |
| - <groupId>org.springframework.security</groupId> |
159 |
| - <artifactId>spring-security-web</artifactId> |
160 |
| - <version>${org.springframework.security-version}</version> |
161 |
| - </dependency> |
162 | 137 |
|
163 | 138 | <!-- Test -->
|
164 | 139 | <dependency>
|
|
170 | 145 | <dependency>
|
171 | 146 | <groupId>junit</groupId>
|
172 | 147 | <artifactId>junit</artifactId>
|
173 |
| - <version>4.11</version> |
| 148 | + <version>4.12</version> |
174 | 149 | <scope>test</scope>
|
175 | 150 | </dependency>
|
176 | 151 | <dependency>
|
177 |
| - <groupId>xmlunit</groupId> |
178 |
| - <artifactId>xmlunit</artifactId> |
179 |
| - <version>1.2</version> |
| 152 | + <groupId>org.xmlunit</groupId> |
| 153 | + <artifactId>xmlunit-matchers</artifactId> |
| 154 | + <version>2.5.1</version> |
180 | 155 | <scope>test</scope>
|
181 | 156 | </dependency>
|
182 | 157 | <dependency>
|
183 | 158 | <groupId>com.jayway.jsonpath</groupId>
|
184 | 159 | <artifactId>json-path</artifactId>
|
185 |
| - <version>0.8.1</version> |
| 160 | + <version>2.4.0</version> |
186 | 161 | <scope>test</scope>
|
187 | 162 | </dependency>
|
188 | 163 | <dependency>
|
|
192 | 167 | <scope>test</scope>
|
193 | 168 | </dependency>
|
194 | 169 | </dependencies>
|
| 170 | + |
195 | 171 | <repositories>
|
196 |
| - <!-- For testing against latest Spring snapshots --> |
197 | 172 | <repository>
|
198 |
| - <id>org.springframework.maven.snapshot</id> |
| 173 | + <id>Spring snapshot</id> |
199 | 174 | <name>Spring Maven Snapshot Repository</name>
|
200 | 175 | <url>http://repo.spring.io/snapshot</url>
|
201 |
| - <releases><enabled>false</enabled></releases> |
202 |
| - <snapshots><enabled>true</enabled></snapshots> |
| 176 | + <releases> |
| 177 | + <enabled>false</enabled> |
| 178 | + </releases> |
| 179 | + <snapshots> |
| 180 | + <enabled>true</enabled> |
| 181 | + </snapshots> |
203 | 182 | </repository>
|
204 |
| - <!-- For developing against latest Spring milestones --> |
205 | 183 | <repository>
|
206 |
| - <id>org.springframework.maven.milestone</id> |
| 184 | + <id>Spring milestone</id> |
207 | 185 | <name>Spring Maven Milestone Repository</name>
|
208 | 186 | <url>http://repo.spring.io/milestone</url>
|
209 |
| - <snapshots><enabled>false</enabled></snapshots> |
| 187 | + <snapshots> |
| 188 | + <enabled>false</enabled> |
| 189 | + </snapshots> |
210 | 190 | </repository>
|
211 | 191 | </repositories>
|
| 192 | + |
212 | 193 | <build>
|
213 | 194 | <finalName>${project.artifactId}</finalName>
|
214 | 195 | <plugins>
|
215 | 196 | <plugin>
|
216 | 197 | <groupId>org.apache.maven.plugins</groupId>
|
217 | 198 | <artifactId>maven-compiler-plugin</artifactId>
|
218 |
| - <version>2.3.2</version> |
| 199 | + <version>3.7.0</version> |
219 | 200 | <configuration>
|
220 | 201 | <source>${java-version}</source>
|
221 | 202 | <target>${java-version}</target>
|
|
224 | 205 | <plugin>
|
225 | 206 | <groupId>org.apache.maven.plugins</groupId>
|
226 | 207 | <artifactId>maven-surefire-plugin</artifactId>
|
227 |
| - <version>2.12</version> |
| 208 | + <version>2.20.1</version> |
228 | 209 | <configuration>
|
229 | 210 | <includes>
|
230 | 211 | <include>**/*Tests.java</include>
|
|
252 | 233 | <plugin>
|
253 | 234 | <groupId>org.codehaus.mojo</groupId>
|
254 | 235 | <artifactId>aspectj-maven-plugin</artifactId>
|
255 |
| - <!-- Have to use version 1.2 since version 1.3 does not appear to work with ITDs --> |
256 |
| - <version>1.2</version> |
| 236 | + <version>1.11</version> |
257 | 237 | <dependencies>
|
258 |
| - <!-- You must use Maven 2.0.9 or above or these are ignored (see MNG-2972) --> |
259 | 238 | <dependency>
|
260 | 239 | <groupId>org.aspectj</groupId>
|
261 | 240 | <artifactId>aspectjrt</artifactId>
|
|
270 | 249 | <executions>
|
271 | 250 | <execution>
|
272 | 251 | <goals>
|
273 |
| - <goal>compile</goal> |
274 |
| - <goal>test-compile</goal> |
| 252 | + <goal>compile</goal> <!-- weave all main classes --> |
| 253 | + <goal>test-compile</goal> <!-- weave all test classes --> |
275 | 254 | </goals>
|
276 | 255 | </execution>
|
277 | 256 | </executions>
|
278 | 257 | <configuration>
|
279 | 258 | <outxml>true</outxml>
|
| 259 | + <complianceLevel>${java-version}</complianceLevel> |
280 | 260 | <source>${java-version}</source>
|
281 | 261 | <target>${java-version}</target>
|
282 | 262 | </configuration>
|
|
289 | 269 | <plugin>
|
290 | 270 | <groupId>org.eclipse.jetty</groupId>
|
291 | 271 | <artifactId>jetty-maven-plugin</artifactId>
|
292 |
| - <version>9.0.6.v20130930</version> |
| 272 | + <version>9.4.8.v20171121</version> |
293 | 273 | <configuration>
|
294 | 274 | <webApp>
|
295 | 275 | <contextPath>/${project.artifactId}</contextPath>
|
|
0 commit comments