|
| 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-5</artifactId> |
| 6 | + <version>0.1-SNAPSHOT</version> |
| 7 | + <name>spring-5</name> |
| 8 | + <packaging>war</packaging> |
| 9 | + |
| 10 | + <parent> |
| 11 | + <groupId>org.springframework.boot</groupId> |
| 12 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 13 | + <!-- <version>1.5.1.RELEASE</version> --> |
| 14 | + <version>2.0.0.BUILD-SNAPSHOT</version> |
| 15 | + </parent> |
| 16 | + |
| 17 | + <dependencies> |
| 18 | + |
| 19 | + <!-- Spring Boot Dependencies --> |
| 20 | + |
| 21 | + <dependency> |
| 22 | + <groupId>org.springframework.boot</groupId> |
| 23 | + <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 24 | + </dependency> |
| 25 | + <dependency> |
| 26 | + <groupId>org.springframework.boot</groupId> |
| 27 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.springframework.boot</groupId> |
| 31 | + <artifactId>spring-boot-devtools</artifactId> |
| 32 | + </dependency> |
| 33 | + |
| 34 | + <!-- Spring --> |
| 35 | + |
| 36 | + <dependency> |
| 37 | + <groupId>org.springframework</groupId> |
| 38 | + <artifactId>spring-web</artifactId> |
| 39 | + <exclusions> |
| 40 | + <exclusion> |
| 41 | + <artifactId>commons-logging</artifactId> |
| 42 | + <groupId>commons-logging</groupId> |
| 43 | + </exclusion> |
| 44 | + </exclusions> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>org.springframework</groupId> |
| 48 | + <artifactId>spring-webmvc</artifactId> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>org.springframework</groupId> |
| 52 | + <artifactId>spring-oxm</artifactId> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <dependency> |
| 56 | + <groupId>commons-fileupload</groupId> |
| 57 | + <artifactId>commons-fileupload</artifactId> |
| 58 | + <version>${commons-fileupload.version}</version> |
| 59 | + </dependency> |
| 60 | + <!-- web --> |
| 61 | + |
| 62 | + <dependency> |
| 63 | + <groupId>javax.servlet</groupId> |
| 64 | + <artifactId>javax.servlet-api</artifactId> |
| 65 | + <scope>provided</scope> |
| 66 | + </dependency> |
| 67 | + |
| 68 | + <dependency> |
| 69 | + <groupId>javax.servlet</groupId> |
| 70 | + <artifactId>jstl</artifactId> |
| 71 | + <scope>runtime</scope> |
| 72 | + </dependency> |
| 73 | + |
| 74 | + <!-- marshalling --> |
| 75 | + |
| 76 | + <dependency> |
| 77 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 78 | + <artifactId>jackson-databind</artifactId> |
| 79 | + </dependency> |
| 80 | + |
| 81 | + <dependency> |
| 82 | + <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 83 | + <artifactId>jackson-dataformat-xml</artifactId> |
| 84 | + </dependency> |
| 85 | + |
| 86 | + <dependency> |
| 87 | + <groupId>com.thoughtworks.xstream</groupId> |
| 88 | + <artifactId>xstream</artifactId> |
| 89 | + <version>${xstream.version}</version> |
| 90 | + </dependency> |
| 91 | + |
| 92 | + <!-- util --> |
| 93 | + |
| 94 | + <dependency> |
| 95 | + <groupId>com.google.guava</groupId> |
| 96 | + <artifactId>guava</artifactId> |
| 97 | + <version>${guava.version}</version> |
| 98 | + </dependency> |
| 99 | + |
| 100 | + <dependency> |
| 101 | + <groupId>org.apache.commons</groupId> |
| 102 | + <artifactId>commons-lang3</artifactId> |
| 103 | + <version>${commons-lang3.version}</version> |
| 104 | + </dependency> |
| 105 | + |
| 106 | + <!-- logging --> |
| 107 | + |
| 108 | + <dependency> |
| 109 | + <groupId>org.slf4j</groupId> |
| 110 | + <artifactId>slf4j-api</artifactId> |
| 111 | + </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>ch.qos.logback</groupId> |
| 114 | + <artifactId>logback-classic</artifactId> |
| 115 | + <!-- <scope>runtime</scope> --> |
| 116 | + </dependency> |
| 117 | + <dependency> |
| 118 | + <groupId>org.slf4j</groupId> |
| 119 | + <artifactId>jcl-over-slf4j</artifactId> |
| 120 | + <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl --> |
| 121 | + </dependency> |
| 122 | + <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> |
| 123 | + <groupId>org.slf4j</groupId> |
| 124 | + <artifactId>log4j-over-slf4j</artifactId> |
| 125 | + </dependency> |
| 126 | + |
| 127 | + <!-- okhttp --> |
| 128 | + |
| 129 | + <dependency> |
| 130 | + <groupId>com.squareup.okhttp3</groupId> |
| 131 | + <artifactId>okhttp</artifactId> |
| 132 | + <version>${com.squareup.okhttp3.version}</version> |
| 133 | + </dependency> |
| 134 | + |
| 135 | + <!-- test scoped --> |
| 136 | + |
| 137 | + <dependency> |
| 138 | + <groupId>junit</groupId> |
| 139 | + <artifactId>junit</artifactId> |
| 140 | + <scope>test</scope> |
| 141 | + </dependency> |
| 142 | + |
| 143 | + <dependency> |
| 144 | + <groupId>org.hamcrest</groupId> |
| 145 | + <artifactId>hamcrest-core</artifactId> |
| 146 | + <scope>test</scope> |
| 147 | + </dependency> |
| 148 | + <dependency> |
| 149 | + <groupId>org.hamcrest</groupId> |
| 150 | + <artifactId>hamcrest-library</artifactId> |
| 151 | + <scope>test</scope> |
| 152 | + </dependency> |
| 153 | + |
| 154 | + <dependency> |
| 155 | + <groupId>org.mockito</groupId> |
| 156 | + <artifactId>mockito-core</artifactId> |
| 157 | + <scope>test</scope> |
| 158 | + </dependency> |
| 159 | + |
| 160 | + <dependency> |
| 161 | + <groupId>org.springframework</groupId> |
| 162 | + <artifactId>spring-test</artifactId> |
| 163 | + </dependency> |
| 164 | + |
| 165 | + <dependency> |
| 166 | + <groupId>com.jayway.restassured</groupId> |
| 167 | + <artifactId>rest-assured</artifactId> |
| 168 | + <version>${rest-assured.version}</version> |
| 169 | + </dependency> |
| 170 | + |
| 171 | + <!-- --> |
| 172 | + <dependency> |
| 173 | + <groupId>com.google.protobuf</groupId> |
| 174 | + <artifactId>protobuf-java</artifactId> |
| 175 | + <version>${protobuf-java.version}</version> |
| 176 | + </dependency> |
| 177 | + <dependency> |
| 178 | + <groupId>com.googlecode.protobuf-java-format</groupId> |
| 179 | + <artifactId>protobuf-java-format</artifactId> |
| 180 | + <version>${protobuf-java-format.version}</version> |
| 181 | + </dependency> |
| 182 | + |
| 183 | + <dependency> |
| 184 | + <groupId>com.esotericsoftware</groupId> |
| 185 | + <artifactId>kryo</artifactId> |
| 186 | + <version>${kryo.version}</version> |
| 187 | + </dependency> |
| 188 | + </dependencies> |
| 189 | + |
| 190 | + <build> |
| 191 | + <finalName>spring-5</finalName> |
| 192 | + <resources> |
| 193 | + <resource> |
| 194 | + <directory>src/main/resources</directory> |
| 195 | + <filtering>true</filtering> |
| 196 | + </resource> |
| 197 | + </resources> |
| 198 | + |
| 199 | + <plugins> |
| 200 | + |
| 201 | + <plugin> |
| 202 | + <groupId>org.apache.maven.plugins</groupId> |
| 203 | + <artifactId>maven-compiler-plugin</artifactId> |
| 204 | + <configuration> |
| 205 | + <source>1.8</source> |
| 206 | + <target>1.8</target> |
| 207 | + </configuration> |
| 208 | + </plugin> |
| 209 | + |
| 210 | + <plugin> |
| 211 | + <groupId>org.apache.maven.plugins</groupId> |
| 212 | + <artifactId>maven-war-plugin</artifactId> |
| 213 | + </plugin> |
| 214 | + |
| 215 | + <plugin> |
| 216 | + <groupId>org.apache.maven.plugins</groupId> |
| 217 | + <artifactId>maven-surefire-plugin</artifactId> |
| 218 | + <configuration> |
| 219 | + <excludes> |
| 220 | + <exclude>**/*IntegrationTest.java</exclude> |
| 221 | + <exclude>**/*LiveTest.java</exclude> |
| 222 | + </excludes> |
| 223 | + <systemPropertyVariables> |
| 224 | + <!-- <provPersistenceTarget>h2</provPersistenceTarget> --> |
| 225 | + </systemPropertyVariables> |
| 226 | + </configuration> |
| 227 | + </plugin> |
| 228 | + |
| 229 | + <plugin> |
| 230 | + <groupId>org.codehaus.cargo</groupId> |
| 231 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 232 | + <version>${cargo-maven2-plugin.version}</version> |
| 233 | + <configuration> |
| 234 | + <wait>true</wait> |
| 235 | + <container> |
| 236 | + <containerId>tomcat8x</containerId> |
| 237 | + <type>embedded</type> |
| 238 | + <systemProperties> |
| 239 | + <!-- <provPersistenceTarget>cargo</provPersistenceTarget> --> |
| 240 | + </systemProperties> |
| 241 | + </container> |
| 242 | + <configuration> |
| 243 | + <properties> |
| 244 | + <cargo.servlet.port>8082</cargo.servlet.port> |
| 245 | + </properties> |
| 246 | + </configuration> |
| 247 | + </configuration> |
| 248 | + </plugin> |
| 249 | + |
| 250 | + </plugins> |
| 251 | + |
| 252 | + </build> |
| 253 | + |
| 254 | + <profiles> |
| 255 | + |
| 256 | + <profile> |
| 257 | + <id>integration</id> |
| 258 | + <build> |
| 259 | + <plugins> |
| 260 | + <plugin> |
| 261 | + <groupId>org.apache.maven.plugins</groupId> |
| 262 | + <artifactId>maven-surefire-plugin</artifactId> |
| 263 | + <executions> |
| 264 | + <execution> |
| 265 | + <phase>integration-test</phase> |
| 266 | + <goals> |
| 267 | + <goal>test</goal> |
| 268 | + </goals> |
| 269 | + <configuration> |
| 270 | + <excludes> |
| 271 | + <exclude>none</exclude> |
| 272 | + </excludes> |
| 273 | + <includes> |
| 274 | + <include>**/*IntegrationTest.java</include> |
| 275 | + </includes> |
| 276 | + </configuration> |
| 277 | + </execution> |
| 278 | + </executions> |
| 279 | + </plugin> |
| 280 | + |
| 281 | + </plugins> |
| 282 | + </build> |
| 283 | + </profile> |
| 284 | + |
| 285 | + </profiles> |
| 286 | + |
| 287 | + <properties> |
| 288 | + <commons-fileupload.version>1.3.2</commons-fileupload.version> |
| 289 | + <kryo.version>4.0.0</kryo.version> |
| 290 | + <protobuf-java-format.version>1.4</protobuf-java-format.version> |
| 291 | + <protobuf-java.version>3.1.0</protobuf-java.version> |
| 292 | + <commons-lang3.version>3.5</commons-lang3.version> |
| 293 | + <xstream.version>1.4.9</xstream.version> |
| 294 | + |
| 295 | + <!-- util --> |
| 296 | + <guava.version>20.0</guava.version> |
| 297 | + <rest-assured.version>2.9.0</rest-assured.version> |
| 298 | + |
| 299 | + <!-- Maven plugins --> |
| 300 | + <cargo-maven2-plugin.version>1.6.0</cargo-maven2-plugin.version> |
| 301 | + <findbugs-maven-plugin.version>3.0.4</findbugs-maven-plugin.version> |
| 302 | + |
| 303 | + <!-- okhttp --> |
| 304 | + <com.squareup.okhttp3.version>3.4.1</com.squareup.okhttp3.version> |
| 305 | + |
| 306 | + </properties> |
| 307 | + |
| 308 | + <repositories> |
| 309 | + <repository> |
| 310 | + <id>spring-snapshots</id> |
| 311 | + <name>Spring Snapshots</name> |
| 312 | + <url>https://repo.spring.io/snapshot</url> |
| 313 | + <snapshots> |
| 314 | + <enabled>true</enabled> |
| 315 | + </snapshots> |
| 316 | + </repository> |
| 317 | + <repository> |
| 318 | + <id>spring-milestones</id> |
| 319 | + <name>Spring Milestones</name> |
| 320 | + <url>https://repo.spring.io/milestone</url> |
| 321 | + <snapshots> |
| 322 | + <enabled>false</enabled> |
| 323 | + </snapshots> |
| 324 | + </repository> |
| 325 | + </repositories> |
| 326 | + <pluginRepositories> |
| 327 | + <pluginRepository> |
| 328 | + <id>spring-snapshots</id> |
| 329 | + <name>Spring Snapshots</name> |
| 330 | + <url>https://repo.spring.io/snapshot</url> |
| 331 | + <snapshots> |
| 332 | + <enabled>true</enabled> |
| 333 | + </snapshots> |
| 334 | + </pluginRepository> |
| 335 | + <pluginRepository> |
| 336 | + <id>spring-milestones</id> |
| 337 | + <name>Spring Milestones</name> |
| 338 | + <url>https://repo.spring.io/milestone</url> |
| 339 | + <snapshots> |
| 340 | + <enabled>false</enabled> |
| 341 | + </snapshots> |
| 342 | + </pluginRepository> |
| 343 | + </pluginRepositories> |
| 344 | + |
| 345 | +</project> |
0 commit comments