|
| 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/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.zenika</groupId> |
| 5 | + <artifactId>HelloWorld</artifactId> |
| 6 | + <packaging>war</packaging> |
| 7 | + <version>1.0-SNAPSHOT</version> |
| 8 | + <name>HelloWorld Maven Webapp</name> |
| 9 | + <url>http://maven.apache.org</url> |
| 10 | + <properties> |
| 11 | + <jdk.version>1.7</jdk.version> |
| 12 | + <spring.version>4.1.1.RELEASE</spring.version> |
| 13 | + <jstl.version>1.2</jstl.version> |
| 14 | + <junit.version>4.11</junit.version> |
| 15 | + <logback.version>1.0.13</logback.version> |
| 16 | + <jcl-over-slf4j.version>1.7.5</jcl-over-slf4j.version> |
| 17 | + </properties> |
| 18 | + <dependencies> |
| 19 | + |
| 20 | + <!-- Unit Test --> |
| 21 | + <dependency> |
| 22 | + <groupId>junit</groupId> |
| 23 | + <artifactId>junit</artifactId> |
| 24 | + <version>${junit.version}</version> |
| 25 | + </dependency> |
| 26 | + |
| 27 | + <!-- Spring Core --> |
| 28 | + <dependency> |
| 29 | + <groupId>org.springframework</groupId> |
| 30 | + <artifactId>spring-core</artifactId> |
| 31 | + <version>${spring.version}</version> |
| 32 | + <exclusions> |
| 33 | + <exclusion> |
| 34 | + <groupId>commons-logging</groupId> |
| 35 | + <artifactId>commons-logging</artifactId> |
| 36 | + </exclusion> |
| 37 | + </exclusions> |
| 38 | + </dependency> |
| 39 | + |
| 40 | + <dependency> |
| 41 | + <groupId>org.slf4j</groupId> |
| 42 | + <artifactId>jcl-over-slf4j</artifactId> |
| 43 | + <version>${jcl-over-slf4j.version}</version> |
| 44 | + </dependency> |
| 45 | + |
| 46 | + <dependency> |
| 47 | + <groupId>ch.qos.logback</groupId> |
| 48 | + <artifactId>logback-classic</artifactId> |
| 49 | + <version>${logback.version}</version> |
| 50 | + </dependency> |
| 51 | + |
| 52 | + <dependency> |
| 53 | + <groupId>org.springframework</groupId> |
| 54 | + <artifactId>spring-web</artifactId> |
| 55 | + <version>${spring.version}</version> |
| 56 | + </dependency> |
| 57 | + |
| 58 | + <dependency> |
| 59 | + <groupId>org.springframework</groupId> |
| 60 | + <artifactId>spring-webmvc</artifactId> |
| 61 | + <version>${spring.version}</version> |
| 62 | + </dependency> |
| 63 | + |
| 64 | + <!-- jstl --> |
| 65 | + <dependency> |
| 66 | + <groupId>jstl</groupId> |
| 67 | + <artifactId>jstl</artifactId> |
| 68 | + <version>${jstl.version}</version> |
| 69 | + </dependency> |
| 70 | + |
| 71 | + <dependency> |
| 72 | + <groupId>javax.servlet</groupId> |
| 73 | + <artifactId>javax.servlet-api</artifactId> |
| 74 | + <version>3.1.0</version> |
| 75 | + <scope>provided</scope> |
| 76 | + </dependency> |
| 77 | + |
| 78 | + </dependencies> |
| 79 | + <build> |
| 80 | + <finalName>HelloWorld</finalName> |
| 81 | + <plugins> |
| 82 | + <!-- Eclipse project --> |
| 83 | + <plugin> |
| 84 | + <groupId>org.apache.maven.plugins</groupId> |
| 85 | + <artifactId>maven-eclipse-plugin</artifactId> |
| 86 | + <version>2.9</version> |
| 87 | + <configuration> |
| 88 | + <!-- Always download and attach dependencies source code --> |
| 89 | + <downloadSources>true</downloadSources> |
| 90 | + <downloadJavadocs>false</downloadJavadocs> |
| 91 | + <!-- Avoid type mvn eclipse:eclipse -Dwtpversion=2.0 --> |
| 92 | + <wtpversion>2.0</wtpversion> |
| 93 | + </configuration> |
| 94 | + </plugin> |
| 95 | + |
| 96 | + <!-- Set JDK Compiler Level --> |
| 97 | + <plugin> |
| 98 | + <groupId>org.apache.maven.plugins</groupId> |
| 99 | + <artifactId>maven-compiler-plugin</artifactId> |
| 100 | + <version>2.3.2</version> |
| 101 | + <configuration> |
| 102 | + <source>${jdk.version}</source> |
| 103 | + <target>${jdk.version}</target> |
| 104 | + </configuration> |
| 105 | + </plugin> |
| 106 | + |
| 107 | + <!-- For Maven Tomcat Plugin --> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.tomcat.maven</groupId> |
| 110 | + <artifactId>tomcat7-maven-plugin</artifactId> |
| 111 | + <version>2.2</version> |
| 112 | + <configuration> |
| 113 | + <path>/HelloWorld</path> |
| 114 | + </configuration> |
| 115 | + </plugin> |
| 116 | + |
| 117 | + </plugins> |
| 118 | + </build> |
| 119 | +</project> |
0 commit comments