|
8 | 8 | <name>Spring MVC simple Maven Webapp</name> |
9 | 9 | <url>http://maven.apache.org</url> |
10 | 10 |
|
11 | | - <parent> |
12 | | - <groupId>com.baeldung</groupId> |
13 | | - <artifactId>parent-modules</artifactId> |
14 | | - <version>1.0.0-SNAPSHOT</version> |
15 | | - </parent> |
16 | | - |
17 | 11 | <properties> |
18 | | - <springframework.version>4.3.10.RELEASE</springframework.version> |
19 | | - <maven-war-plugin.version>3.1.0</maven-war-plugin.version> |
| 12 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 13 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <springframework.version>5.0.2.RELEASE</springframework.version> |
| 16 | + <maven-war-plugin.version>3.2.0</maven-war-plugin.version> |
| 17 | + <maven.compiler.version>3.7.0</maven.compiler.version> |
| 18 | + <maven-surefire-plugin.version>2.20</maven-surefire-plugin.version> |
20 | 19 | <jstl.version>1.2</jstl.version> |
21 | | - <javax.servlet.jsp-api.version>2.3.1</javax.servlet.jsp-api.version> |
22 | | - <javax.servlet-api.version>3.1.0</javax.servlet-api.version> |
| 20 | + <javax.servlet.jsp-api.version>2.3.2-b02</javax.servlet.jsp-api.version> |
| 21 | + <javax.servlet-api.version>4.0.0</javax.servlet-api.version> |
23 | 22 | <hibernate-validator.version>5.4.1.Final</hibernate-validator.version> |
24 | 23 | <deploy-path>enter-location-of-server</deploy-path> |
25 | 24 | <fileupload.version>1.3.2</fileupload.version> |
26 | 25 | <java.version>1.8</java.version> |
27 | 26 | <org.thymeleaf-version>3.0.7.RELEASE</org.thymeleaf-version> |
28 | 27 | <groovy.version>2.4.12</groovy.version> |
29 | | - <freemarker.version>2.3.23</freemarker.version> |
| 28 | + <freemarker.version>2.3.27-incubating</freemarker.version> |
30 | 29 | <jade.version>1.2.5</jade.version> |
| 30 | + <junit.jupiter.version>5.0.2</junit.jupiter.version> |
| 31 | + <junit.jupiter.version>5.0.2</junit.jupiter.version> |
| 32 | + <junit.platform.version>1.0.2</junit.platform.version> |
31 | 33 | </properties> |
32 | 34 |
|
33 | 35 | <dependencies> |
34 | 36 | <dependency> |
35 | 37 | <groupId>javax.servlet</groupId> |
36 | 38 | <artifactId>javax.servlet-api</artifactId> |
37 | | - <version>3.1.0</version> |
38 | | - </dependency> |
39 | | - <dependency> |
40 | | - <groupId>org.springframework</groupId> |
41 | | - <artifactId>spring-webmvc</artifactId> |
42 | | - <version>${springframework.version}</version> |
43 | | - </dependency> |
44 | | - <dependency> |
45 | | - <groupId>org.springframework</groupId> |
46 | | - <artifactId>spring-context</artifactId> |
47 | | - <version>${springframework.version}</version> |
48 | | - </dependency> |
49 | | - <dependency> |
50 | | - <groupId>org.springframework</groupId> |
51 | | - <artifactId>spring-core</artifactId> |
52 | | - <version>${springframework.version}</version> |
53 | | - <exclusions> |
54 | | - <exclusion> |
55 | | - <artifactId>commons-logging</artifactId> |
56 | | - <groupId>commons-logging</groupId> |
57 | | - </exclusion> |
58 | | - </exclusions> |
| 39 | + <version>${javax.servlet-api.version}</version> |
59 | 40 | </dependency> |
60 | 41 | <dependency> |
61 | 42 | <groupId>javax.servlet.jsp</groupId> |
62 | 43 | <artifactId>javax.servlet.jsp-api</artifactId> |
63 | 44 | <version>${javax.servlet.jsp-api.version}</version> |
64 | 45 | </dependency> |
65 | | - |
66 | 46 | <dependency> |
67 | 47 | <groupId>javax.servlet</groupId> |
68 | 48 | <artifactId>jstl</artifactId> |
69 | 49 | <version>${jstl.version}</version> |
70 | 50 | </dependency> |
71 | | - |
72 | 51 | <dependency> |
73 | 52 | <groupId>org.hibernate</groupId> |
74 | 53 | <artifactId>hibernate-validator</artifactId> |
75 | 54 | <version>${hibernate-validator.version}</version> |
76 | 55 | </dependency> |
77 | | - <dependency> |
78 | | - <groupId>org.springframework</groupId> |
79 | | - <artifactId>spring-webmvc</artifactId> |
80 | | - <version>${springframework.version}</version> |
81 | | - </dependency> |
82 | 56 | <dependency> |
83 | 57 | <groupId>commons-fileupload</groupId> |
84 | 58 | <artifactId>commons-fileupload</artifactId> |
85 | 59 | <version>${fileupload.version}</version> |
86 | 60 | </dependency> |
87 | | - |
| 61 | + <dependency> |
| 62 | + <groupId>org.springframework</groupId> |
| 63 | + <artifactId>spring-webmvc</artifactId> |
| 64 | + <version>${springframework.version}</version> |
| 65 | + </dependency> |
| 66 | + |
88 | 67 | <!-- thymeleaf dependencies --> |
89 | 68 | <dependency> |
90 | 69 | <groupId>org.thymeleaf</groupId> |
|
115 | 94 | <artifactId>groovy-templates</artifactId> |
116 | 95 | <version>${groovy.version}</version> |
117 | 96 | </dependency> |
118 | | - |
| 97 | + |
119 | 98 | <!-- jade dependency --> |
120 | 99 | <dependency> |
121 | 100 | <groupId>de.neuland-bfi</groupId> |
122 | 101 | <artifactId>spring-jade4j</artifactId> |
123 | 102 | <version>${jade.version}</version> |
124 | 103 | </dependency> |
125 | 104 |
|
| 105 | + <!--Testing --> |
| 106 | + <dependency> |
| 107 | + <groupId>org.springframework</groupId> |
| 108 | + <artifactId>spring-test</artifactId> |
| 109 | + <version>${springframework.version}</version> |
| 110 | + <scope>test</scope> |
| 111 | + </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>org.junit.jupiter</groupId> |
| 114 | + <artifactId>junit-jupiter-engine</artifactId> |
| 115 | + <version>${junit.jupiter.version}</version> |
| 116 | + <scope>test</scope> |
| 117 | + </dependency> |
126 | 118 | </dependencies> |
127 | 119 | <build> |
128 | 120 | <pluginManagement> |
|
141 | 133 | <plugin> |
142 | 134 | <groupId>org.apache.maven.plugins</groupId> |
143 | 135 | <artifactId>maven-compiler-plugin</artifactId> |
144 | | - <version>3.7.0</version> |
145 | | - <configuration> |
146 | | - <source>1.8</source> |
147 | | - <target>1.8</target> |
148 | | - </configuration> |
| 136 | + <version>${maven.compiler.version}</version> |
| 137 | + </plugin> |
| 138 | + <plugin> |
| 139 | + <artifactId>maven-surefire-plugin</artifactId> |
| 140 | + <version>${maven-surefire-plugin.version}</version> |
| 141 | + <dependencies> |
| 142 | + <dependency> |
| 143 | + <groupId>org.junit.platform</groupId> |
| 144 | + <artifactId>junit-platform-surefire-provider</artifactId> |
| 145 | + <version>${junit.platform.version}</version> |
| 146 | + </dependency> |
| 147 | + </dependencies> |
149 | 148 | </plugin> |
150 | 149 | </plugins> |
151 | 150 | </pluginManagement> |
|
0 commit comments