|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | | - <modelVersion>4.0.0</modelVersion> |
4 | | - <groupId>com.baeldung</groupId> |
5 | | - <artifactId>spring-thymeleaf</artifactId> |
6 | | - <version>0.1-SNAPSHOT</version> |
7 | | - <packaging>war</packaging> |
8 | | - <properties> |
9 | | - <java-version>1.7</java-version> |
10 | | - <!-- spring --> |
11 | | - <org.springframework-version>4.3.3.RELEASE</org.springframework-version> |
12 | | - <javax.servlet-version>3.0.1</javax.servlet-version> |
13 | | - <!-- logging --> |
14 | | - <org.slf4j.version>1.7.12</org.slf4j.version> |
15 | | - <logback.version>1.1.3</logback.version> |
16 | | - <!-- thymeleaf --> |
17 | | - <org.thymeleaf-version>2.1.4.RELEASE</org.thymeleaf-version> |
18 | | - <!-- validation --> |
19 | | - <javax.validation-version>1.1.0.Final</javax.validation-version> |
20 | | - <org.hibernate-version>5.1.2.Final</org.hibernate-version> |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.baeldung</groupId> |
| 5 | + <artifactId>spring-thymeleaf</artifactId> |
| 6 | + <version>0.1-SNAPSHOT</version> |
| 7 | + <packaging>war</packaging> |
| 8 | + <properties> |
| 9 | + <java-version>1.7</java-version> |
| 10 | + <!-- spring --> |
| 11 | + <org.springframework-version>4.3.3.RELEASE</org.springframework-version> |
| 12 | + <javax.servlet-version>3.0.1</javax.servlet-version> |
| 13 | + <!-- logging --> |
| 14 | + <org.slf4j.version>1.7.12</org.slf4j.version> |
| 15 | + <logback.version>1.1.3</logback.version> |
| 16 | + <!-- thymeleaf --> |
| 17 | + <org.thymeleaf-version>2.1.4.RELEASE</org.thymeleaf-version> |
| 18 | + <!-- validation --> |
| 19 | + <javax.validation-version>1.1.0.Final</javax.validation-version> |
| 20 | + <org.hibernate-version>5.1.2.Final</org.hibernate-version> |
21 | 21 |
|
22 | | - <!-- Maven plugins --> |
23 | | - <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> |
24 | | - <maven-war-plugin.version>2.6</maven-war-plugin.version> |
25 | | - <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> |
26 | | - <cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version> |
27 | | - </properties> |
| 22 | + <!-- Maven plugins --> |
| 23 | + <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> |
| 24 | + <maven-war-plugin.version>2.6</maven-war-plugin.version> |
| 25 | + <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> |
| 26 | + <cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version> |
| 27 | + </properties> |
28 | 28 |
|
29 | | - <dependencies> |
30 | | - <!-- Spring --> |
31 | | - <dependency> |
32 | | - <groupId>org.springframework</groupId> |
33 | | - <artifactId>spring-context</artifactId> |
34 | | - <version>${org.springframework-version}</version> |
35 | | - <exclusions> |
36 | | - <!-- Exclude Commons Logging in favor of SLF4j --> |
37 | | - <exclusion> |
38 | | - <groupId>commons-logging</groupId> |
39 | | - <artifactId>commons-logging</artifactId> |
40 | | - </exclusion> |
41 | | - </exclusions> |
42 | | - </dependency> |
43 | | - <dependency> |
44 | | - <groupId>org.springframework</groupId> |
45 | | - <artifactId>spring-webmvc</artifactId> |
46 | | - <version>${org.springframework-version}</version> |
47 | | - </dependency> |
48 | | - <!-- Spring Security --> |
49 | | - <dependency> |
50 | | - <groupId>org.springframework.security</groupId> |
51 | | - <artifactId>spring-security-web</artifactId> |
52 | | - <version>4.1.3.RELEASE</version> |
53 | | - </dependency> |
54 | | - <dependency> |
55 | | - <groupId>org.springframework.security</groupId> |
56 | | - <artifactId>spring-security-config</artifactId> |
57 | | - <version>4.1.3.RELEASE</version> |
58 | | - </dependency> |
59 | | - <!-- Thymeleaf --> |
60 | | - <dependency> |
61 | | - <groupId>org.thymeleaf</groupId> |
62 | | - <artifactId>thymeleaf</artifactId> |
63 | | - <version>${org.thymeleaf-version}</version> |
64 | | - </dependency> |
65 | | - <dependency> |
66 | | - <groupId>org.thymeleaf</groupId> |
67 | | - <artifactId>thymeleaf-spring4</artifactId> |
68 | | - <version>${org.thymeleaf-version}</version> |
69 | | - </dependency> |
70 | | - <!-- Logging --> |
71 | | - <!-- logging --> |
72 | | - <dependency> |
73 | | - <groupId>org.slf4j</groupId> |
74 | | - <artifactId>slf4j-api</artifactId> |
75 | | - <version>${org.slf4j.version}</version> |
76 | | - </dependency> |
77 | | - <dependency> |
78 | | - <groupId>ch.qos.logback</groupId> |
79 | | - <artifactId>logback-classic</artifactId> |
80 | | - <version>${logback.version}</version> |
81 | | - <!-- <scope>runtime</scope> --> |
82 | | - </dependency> |
83 | | - <dependency> |
84 | | - <groupId>org.slf4j</groupId> |
85 | | - <artifactId>jcl-over-slf4j</artifactId> |
86 | | - <version>${org.slf4j.version}</version> |
87 | | - <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl --> |
88 | | - </dependency> |
89 | | - <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> |
90 | | - <groupId>org.slf4j</groupId> |
91 | | - <artifactId>log4j-over-slf4j</artifactId> |
92 | | - <version>${org.slf4j.version}</version> |
93 | | - </dependency> |
94 | | - <!-- Servlet --> |
95 | | - <dependency> |
96 | | - <groupId>javax.servlet</groupId> |
97 | | - <artifactId>javax.servlet-api</artifactId> |
98 | | - <version>${javax.servlet-version}</version> |
99 | | - <scope>provided</scope> |
100 | | - </dependency> |
101 | | - <!-- Validation --> |
102 | | - <dependency> |
103 | | - <groupId>javax.validation</groupId> |
104 | | - <artifactId>validation-api</artifactId> |
105 | | - <version>${javax.validation-version}</version> |
106 | | - </dependency> |
107 | | - <dependency> |
108 | | - <groupId>org.hibernate</groupId> |
109 | | - <artifactId>hibernate-validator</artifactId> |
110 | | - <version>${org.hibernate-version}</version> |
111 | | - </dependency> |
112 | | - <!-- test scoped --> |
| 29 | + <dependencies> |
| 30 | + <!-- Spring --> |
| 31 | + <dependency> |
| 32 | + <groupId>org.springframework</groupId> |
| 33 | + <artifactId>spring-context</artifactId> |
| 34 | + <version>${org.springframework-version}</version> |
| 35 | + <exclusions> |
| 36 | + <!-- Exclude Commons Logging in favor of SLF4j --> |
| 37 | + <exclusion> |
| 38 | + <groupId>commons-logging</groupId> |
| 39 | + <artifactId>commons-logging</artifactId> |
| 40 | + </exclusion> |
| 41 | + </exclusions> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>org.springframework</groupId> |
| 45 | + <artifactId>spring-webmvc</artifactId> |
| 46 | + <version>${org.springframework-version}</version> |
| 47 | + </dependency> |
| 48 | + <!-- Spring Security --> |
| 49 | + <dependency> |
| 50 | + <groupId>org.springframework.security</groupId> |
| 51 | + <artifactId>spring-security-web</artifactId> |
| 52 | + <version>4.1.3.RELEASE</version> |
| 53 | + </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>org.springframework.security</groupId> |
| 56 | + <artifactId>spring-security-config</artifactId> |
| 57 | + <version>4.1.3.RELEASE</version> |
| 58 | + </dependency> |
| 59 | + <!-- Thymeleaf --> |
| 60 | + <dependency> |
| 61 | + <groupId>org.thymeleaf</groupId> |
| 62 | + <artifactId>thymeleaf</artifactId> |
| 63 | + <version>${org.thymeleaf-version}</version> |
| 64 | + </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>org.thymeleaf</groupId> |
| 67 | + <artifactId>thymeleaf-spring4</artifactId> |
| 68 | + <version>${org.thymeleaf-version}</version> |
| 69 | + </dependency> |
| 70 | + <!-- Logging --> |
| 71 | + <!-- logging --> |
| 72 | + <dependency> |
| 73 | + <groupId>org.slf4j</groupId> |
| 74 | + <artifactId>slf4j-api</artifactId> |
| 75 | + <version>${org.slf4j.version}</version> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>ch.qos.logback</groupId> |
| 79 | + <artifactId>logback-classic</artifactId> |
| 80 | + <version>${logback.version}</version> |
| 81 | + <!-- <scope>runtime</scope> --> |
| 82 | + </dependency> |
| 83 | + <dependency> |
| 84 | + <groupId>org.slf4j</groupId> |
| 85 | + <artifactId>jcl-over-slf4j</artifactId> |
| 86 | + <version>${org.slf4j.version}</version> |
| 87 | + <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl --> |
| 88 | + </dependency> |
| 89 | + <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> |
| 90 | + <groupId>org.slf4j</groupId> |
| 91 | + <artifactId>log4j-over-slf4j</artifactId> |
| 92 | + <version>${org.slf4j.version}</version> |
| 93 | + </dependency> |
| 94 | + <!-- Servlet --> |
| 95 | + <dependency> |
| 96 | + <groupId>javax.servlet</groupId> |
| 97 | + <artifactId>javax.servlet-api</artifactId> |
| 98 | + <version>${javax.servlet-version}</version> |
| 99 | + <scope>provided</scope> |
| 100 | + </dependency> |
| 101 | + <!-- Validation --> |
| 102 | + <dependency> |
| 103 | + <groupId>javax.validation</groupId> |
| 104 | + <artifactId>validation-api</artifactId> |
| 105 | + <version>${javax.validation-version}</version> |
| 106 | + </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.hibernate</groupId> |
| 109 | + <artifactId>hibernate-validator</artifactId> |
| 110 | + <version>${org.hibernate-version}</version> |
| 111 | + </dependency> |
| 112 | + <!-- test scoped --> |
113 | 113 |
|
114 | | - <dependency> |
115 | | - <groupId>org.springframework</groupId> |
116 | | - <artifactId>spring-test</artifactId> |
117 | | - <version>4.1.3.RELEASE</version> |
118 | | - <scope>test</scope> |
119 | | - </dependency> |
| 114 | + <dependency> |
| 115 | + <groupId>org.springframework</groupId> |
| 116 | + <artifactId>spring-test</artifactId> |
| 117 | + <version>4.1.3.RELEASE</version> |
| 118 | + <scope>test</scope> |
| 119 | + </dependency> |
120 | 120 |
|
121 | | - <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-test --> |
122 | | - <dependency> |
123 | | - <groupId>org.springframework.security</groupId> |
124 | | - <artifactId>spring-security-test</artifactId> |
125 | | - <version>4.1.3.RELEASE</version> |
126 | | - <scope>test</scope> |
127 | | - </dependency> |
| 121 | + <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-test --> |
| 122 | + <dependency> |
| 123 | + <groupId>org.springframework.security</groupId> |
| 124 | + <artifactId>spring-security-test</artifactId> |
| 125 | + <version>4.1.3.RELEASE</version> |
| 126 | + <scope>test</scope> |
| 127 | + </dependency> |
128 | 128 |
|
129 | | - <!-- https://mvnrepository.com/artifact/junit/junit --> |
130 | | - <dependency> |
131 | | - <groupId>junit</groupId> |
132 | | - <artifactId>junit</artifactId> |
133 | | - <version>4.12</version> |
134 | | - <scope>test</scope> |
135 | | - </dependency> |
| 129 | + <!-- https://mvnrepository.com/artifact/junit/junit --> |
| 130 | + <dependency> |
| 131 | + <groupId>junit</groupId> |
| 132 | + <artifactId>junit</artifactId> |
| 133 | + <version>4.12</version> |
| 134 | + <scope>test</scope> |
| 135 | + </dependency> |
136 | 136 |
|
137 | | - </dependencies> |
138 | | - <build> |
139 | | - <plugins> |
140 | | - <plugin> |
141 | | - <groupId>org.apache.maven.plugins</groupId> |
142 | | - <artifactId>maven-compiler-plugin</artifactId> |
143 | | - <version>${maven-compiler-plugin.version}</version> |
144 | | - <configuration> |
145 | | - <source>${java-version}</source> |
146 | | - <target>${java-version}</target> |
147 | | - </configuration> |
148 | | - </plugin> |
149 | | - <plugin> |
150 | | - <groupId>org.apache.maven.plugins</groupId> |
151 | | - <artifactId>maven-war-plugin</artifactId> |
152 | | - <version>${maven-war-plugin.version}</version> |
153 | | - <configuration> |
154 | | - <failOnMissingWebXml>false</failOnMissingWebXml> |
155 | | - </configuration> |
156 | | - </plugin> |
157 | | - <plugin> |
158 | | - <groupId>org.apache.maven.plugins</groupId> |
159 | | - <artifactId>maven-surefire-plugin</artifactId> |
160 | | - <version>${maven-surefire-plugin.version}</version> |
161 | | - <configuration> |
162 | | - <excludes> |
163 | | - </excludes> |
164 | | - <systemPropertyVariables> |
165 | | - </systemPropertyVariables> |
166 | | - </configuration> |
167 | | - </plugin> |
168 | | - <plugin> |
169 | | - <groupId>org.codehaus.cargo</groupId> |
170 | | - <artifactId>cargo-maven2-plugin</artifactId> |
171 | | - <version>${cargo-maven2-plugin.version}</version> |
172 | | - <configuration> |
173 | | - <wait>true</wait> |
174 | | - <container> |
175 | | - <containerId>jetty8x</containerId> |
176 | | - <type>embedded</type> |
177 | | - <systemProperties> |
178 | | - </systemProperties> |
179 | | - </container> |
180 | | - <configuration> |
181 | | - <properties> |
182 | | - <cargo.servlet.port>8082</cargo.servlet.port> |
183 | | - </properties> |
184 | | - </configuration> |
185 | | - </configuration> |
186 | | - </plugin> |
187 | | - </plugins> |
188 | | - </build> |
| 137 | + </dependencies> |
| 138 | + <build> |
| 139 | + <plugins> |
| 140 | + <plugin> |
| 141 | + <groupId>org.apache.maven.plugins</groupId> |
| 142 | + <artifactId>maven-compiler-plugin</artifactId> |
| 143 | + <version>${maven-compiler-plugin.version}</version> |
| 144 | + <configuration> |
| 145 | + <source>${java-version}</source> |
| 146 | + <target>${java-version}</target> |
| 147 | + </configuration> |
| 148 | + </plugin> |
| 149 | + <plugin> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-war-plugin</artifactId> |
| 152 | + <version>${maven-war-plugin.version}</version> |
| 153 | + <configuration> |
| 154 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 155 | + </configuration> |
| 156 | + </plugin> |
| 157 | + <plugin> |
| 158 | + <groupId>org.apache.maven.plugins</groupId> |
| 159 | + <artifactId>maven-surefire-plugin</artifactId> |
| 160 | + <version>${maven-surefire-plugin.version}</version> |
| 161 | + <configuration> |
| 162 | + <excludes> |
| 163 | + </excludes> |
| 164 | + <systemPropertyVariables> |
| 165 | + </systemPropertyVariables> |
| 166 | + </configuration> |
| 167 | + </plugin> |
| 168 | + <plugin> |
| 169 | + <groupId>org.codehaus.cargo</groupId> |
| 170 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 171 | + <version>${cargo-maven2-plugin.version}</version> |
| 172 | + <configuration> |
| 173 | + <wait>true</wait> |
| 174 | + <container> |
| 175 | + <containerId>jetty8x</containerId> |
| 176 | + <type>embedded</type> |
| 177 | + <systemProperties> |
| 178 | + </systemProperties> |
| 179 | + </container> |
| 180 | + <configuration> |
| 181 | + <properties> |
| 182 | + <cargo.servlet.port>8082</cargo.servlet.port> |
| 183 | + </properties> |
| 184 | + </configuration> |
| 185 | + </configuration> |
| 186 | + </plugin> |
| 187 | + </plugins> |
| 188 | + </build> |
189 | 189 | </project> |
0 commit comments