|
| 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>org.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.1.8.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 | + <!-- Maven plugins --> |
| 22 | + <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version> |
| 23 | + <maven-war-plugin.version>2.6</maven-war-plugin.version> |
| 24 | + <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version> |
| 25 | + </properties> |
| 26 | + <dependencies> |
| 27 | + <!-- Spring --> |
| 28 | + <dependency> |
| 29 | + <groupId>org.springframework</groupId> |
| 30 | + <artifactId>spring-context</artifactId> |
| 31 | + <version>${org.springframework-version}</version> |
| 32 | + <exclusions> |
| 33 | + <!-- Exclude Commons Logging in favor of SLF4j --> |
| 34 | + <exclusion> |
| 35 | + <groupId>commons-logging</groupId> |
| 36 | + <artifactId>commons-logging</artifactId> |
| 37 | + </exclusion> |
| 38 | + </exclusions> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>org.springframework</groupId> |
| 42 | + <artifactId>spring-webmvc</artifactId> |
| 43 | + <version>${org.springframework-version}</version> |
| 44 | + </dependency> |
| 45 | + <!-- Thymeleaf --> |
| 46 | + <dependency> |
| 47 | + <groupId>org.thymeleaf</groupId> |
| 48 | + <artifactId>thymeleaf</artifactId> |
| 49 | + <version>${org.thymeleaf-version}</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.thymeleaf</groupId> |
| 53 | + <artifactId>thymeleaf-spring4</artifactId> |
| 54 | + <version>${org.thymeleaf-version}</version> |
| 55 | + </dependency> |
| 56 | + <!-- Logging --> |
| 57 | + <!-- logging --> |
| 58 | + <dependency> |
| 59 | + <groupId>org.slf4j</groupId> |
| 60 | + <artifactId>slf4j-api</artifactId> |
| 61 | + <version>${org.slf4j.version}</version> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>ch.qos.logback</groupId> |
| 65 | + <artifactId>logback-classic</artifactId> |
| 66 | + <version>${logback.version}</version> |
| 67 | + <!-- <scope>runtime</scope> --> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>org.slf4j</groupId> |
| 71 | + <artifactId>jcl-over-slf4j</artifactId> |
| 72 | + <version>${org.slf4j.version}</version> |
| 73 | + <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl --> |
| 74 | + </dependency> |
| 75 | + <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> |
| 76 | + <groupId>org.slf4j</groupId> |
| 77 | + <artifactId>log4j-over-slf4j</artifactId> |
| 78 | + <version>${org.slf4j.version}</version> |
| 79 | + </dependency> |
| 80 | + <!-- Servlet --> |
| 81 | + <dependency> |
| 82 | + <groupId>javax.servlet</groupId> |
| 83 | + <artifactId>javax.servlet-api</artifactId> |
| 84 | + <version>${javax.servlet-version}</version> |
| 85 | + <scope>provided</scope> |
| 86 | + </dependency> |
| 87 | + <!-- Validation --> |
| 88 | + <dependency> |
| 89 | + <groupId>javax.validation</groupId> |
| 90 | + <artifactId>validation-api</artifactId> |
| 91 | + <version>${javax.validation-version}</version> |
| 92 | + </dependency> |
| 93 | + <dependency> |
| 94 | + <groupId>org.hibernate</groupId> |
| 95 | + <artifactId>hibernate-validator</artifactId> |
| 96 | + <version>${org.hibernate-version}</version> |
| 97 | + </dependency> |
| 98 | + </dependencies> |
| 99 | + <build> |
| 100 | + <plugins> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.maven.plugins</groupId> |
| 103 | + <artifactId>maven-compiler-plugin</artifactId> |
| 104 | + <version>${maven-compiler-plugin.version}</version> |
| 105 | + <configuration> |
| 106 | + <source>${java-version}</source> |
| 107 | + <target>${java-version}</target> |
| 108 | + </configuration> |
| 109 | + </plugin> |
| 110 | + <plugin> |
| 111 | + <groupId>org.apache.maven.plugins</groupId> |
| 112 | + <artifactId>maven-war-plugin</artifactId> |
| 113 | + <version>${maven-war-plugin.version}</version> |
| 114 | + </plugin> |
| 115 | + <plugin> |
| 116 | + <groupId>org.apache.maven.plugins</groupId> |
| 117 | + <artifactId>maven-surefire-plugin</artifactId> |
| 118 | + <version>${maven-surefire-plugin.version}</version> |
| 119 | + <configuration> |
| 120 | + <excludes> |
| 121 | + </excludes> |
| 122 | + <systemPropertyVariables> |
| 123 | + </systemPropertyVariables> |
| 124 | + </configuration> |
| 125 | + </plugin> |
| 126 | + </plugins> |
| 127 | + </build> |
| 128 | +</project> |
0 commit comments