|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | | - <modelVersion>4.0.0</modelVersion> |
| 3 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 4 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 6 | + <modelVersion>4.0.0</modelVersion> |
6 | 7 |
|
7 | | - <groupId>me.cyper.fsd.lab05</groupId> |
8 | | - <artifactId>course-app</artifactId> |
9 | | - <version>1.0-SNAPSHOT</version> |
10 | | - <packaging>war</packaging> |
| 8 | + <groupId>me.cyper.fsd.lab05</groupId> |
| 9 | + <artifactId>course-app</artifactId> |
| 10 | + <version>1.0-SNAPSHOT</version> |
| 11 | + <packaging>war</packaging> |
11 | 12 |
|
12 | | - <name>course-app Maven Webapp</name> |
13 | | - <!-- FIXME change it to the project's website --> |
14 | | - <url>http://www.example.com</url> |
| 13 | + <name>course-app Maven Webapp</name> |
| 14 | + <!-- FIXME change it to the project's website --> |
| 15 | + <url>http://www.example.com</url> |
15 | 16 |
|
16 | | - <properties> |
17 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
18 | | - <maven.compiler.source>1.8</maven.compiler.source> |
19 | | - <maven.compiler.target>1.8</maven.compiler.target> |
20 | | - </properties> |
| 17 | + <properties> |
| 18 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 19 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 20 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 21 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 22 | + <jdk.version>1.8</jdk.version> |
| 23 | + <spring.version>5.1.8.RELEASE</spring.version> |
| 24 | + <junit.version>4.11</junit.version> |
| 25 | + <jstl.version>1.2.1</jstl.version> |
| 26 | + <tld.version>1.1.2</tld.version> |
| 27 | + <servlets.version>3.1.0</servlets.version> |
| 28 | + <jsp.version>2.3.1</jsp.version> |
| 29 | + </properties> |
21 | 30 |
|
22 | | - <dependencies> |
23 | | - <dependency> |
24 | | - <groupId>junit</groupId> |
25 | | - <artifactId>junit</artifactId> |
26 | | - <version>4.11</version> |
27 | | - <scope>test</scope> |
28 | | - </dependency> |
29 | | - </dependencies> |
| 31 | + <dependencies> |
| 32 | + <!-- Unit Test --> |
| 33 | + <dependency> |
| 34 | + <groupId>junit</groupId> |
| 35 | + <artifactId>junit</artifactId> |
| 36 | + <version>${junit.version}</version> |
| 37 | + <scope>test</scope> |
| 38 | + </dependency> |
30 | 39 |
|
31 | | - <build> |
32 | | - <finalName>course-app</finalName> |
33 | | - <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> |
34 | | - <plugins> |
35 | | - <plugin> |
36 | | - <artifactId>maven-clean-plugin</artifactId> |
37 | | - <version>3.1.0</version> |
38 | | - </plugin> |
39 | | - <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> |
40 | | - <plugin> |
41 | | - <artifactId>maven-resources-plugin</artifactId> |
42 | | - <version>3.0.2</version> |
43 | | - </plugin> |
44 | | - <plugin> |
45 | | - <artifactId>maven-compiler-plugin</artifactId> |
46 | | - <version>3.8.0</version> |
47 | | - </plugin> |
48 | | - <plugin> |
49 | | - <artifactId>maven-surefire-plugin</artifactId> |
50 | | - <version>2.22.1</version> |
51 | | - </plugin> |
52 | | - <plugin> |
53 | | - <artifactId>maven-war-plugin</artifactId> |
54 | | - <version>3.2.2</version> |
55 | | - </plugin> |
56 | | - <plugin> |
57 | | - <artifactId>maven-install-plugin</artifactId> |
58 | | - <version>2.5.2</version> |
59 | | - </plugin> |
60 | | - <plugin> |
61 | | - <artifactId>maven-deploy-plugin</artifactId> |
62 | | - <version>2.8.2</version> |
63 | | - </plugin> |
64 | | - </plugins> |
65 | | - </pluginManagement> |
66 | | - </build> |
| 40 | + <!-- Apache Commons --> |
| 41 | + <dependency> |
| 42 | + <groupId>org.apache.commons</groupId> |
| 43 | + <artifactId>commons-lang3</artifactId> |
| 44 | + <version>3.7</version> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + |
| 48 | + <!-- Spring MVC Dependency --> |
| 49 | + <dependency> |
| 50 | + <groupId>org.springframework</groupId> |
| 51 | + <artifactId>spring-webmvc</artifactId> |
| 52 | + <version>${spring.version}</version> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <!-- Spring JDBC Dependency --> |
| 56 | + <dependency> |
| 57 | + <groupId>org.springframework</groupId> |
| 58 | + <artifactId>spring-jdbc</artifactId> |
| 59 | + <version>${spring.version}</version> |
| 60 | + </dependency> |
| 61 | + |
| 62 | + <!-- JSTL Dependency --> |
| 63 | + <dependency> |
| 64 | + <groupId>javax.servlet.jsp.jstl</groupId> |
| 65 | + <artifactId>javax.servlet.jsp.jstl-api</artifactId> |
| 66 | + <version>${jstl.version}</version> |
| 67 | + </dependency> |
| 68 | + |
| 69 | + <dependency> |
| 70 | + <groupId>taglibs</groupId> |
| 71 | + <artifactId>standard</artifactId> |
| 72 | + <version>${tld.version}</version> |
| 73 | + </dependency> |
| 74 | + |
| 75 | + <!-- Servlet Dependency --> |
| 76 | + <dependency> |
| 77 | + <groupId>javax.servlet</groupId> |
| 78 | + <artifactId>javax.servlet-api</artifactId> |
| 79 | + <version>${servlets.version}</version> |
| 80 | + <scope>provided</scope> |
| 81 | + </dependency> |
| 82 | + |
| 83 | + <!-- JSP Dependency --> |
| 84 | + <dependency> |
| 85 | + <groupId>javax.servlet.jsp</groupId> |
| 86 | + <artifactId>javax.servlet.jsp-api</artifactId> |
| 87 | + <version>${jsp.version}</version> |
| 88 | + <scope>provided</scope> |
| 89 | + </dependency> |
| 90 | + |
| 91 | + <!-- https://mvnrepository.com/artifact/com.h2database/h2 --> |
| 92 | + <dependency> |
| 93 | + <groupId>com.h2database</groupId> |
| 94 | + <artifactId>h2</artifactId> |
| 95 | + <version>1.4.199</version> |
| 96 | + </dependency> |
| 97 | + |
| 98 | + </dependencies> |
| 99 | + |
| 100 | + <build> |
| 101 | + <finalName>course-app</finalName> |
| 102 | + <pluginManagement><!-- lock down plugins versions to avoid using |
| 103 | + Maven defaults (may be moved to parent pom) --> |
| 104 | + <plugins> |
| 105 | + <plugin> |
| 106 | + <artifactId>maven-clean-plugin</artifactId> |
| 107 | + <version>3.1.0</version> |
| 108 | + </plugin> |
| 109 | + <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> |
| 110 | + <plugin> |
| 111 | + <artifactId>maven-resources-plugin</artifactId> |
| 112 | + <version>3.0.2</version> |
| 113 | + </plugin> |
| 114 | + <plugin> |
| 115 | + <artifactId>maven-compiler-plugin</artifactId> |
| 116 | + <version>3.8.0</version> |
| 117 | + </plugin> |
| 118 | + <plugin> |
| 119 | + <artifactId>maven-surefire-plugin</artifactId> |
| 120 | + <version>2.22.1</version> |
| 121 | + </plugin> |
| 122 | + <plugin> |
| 123 | + <artifactId>maven-war-plugin</artifactId> |
| 124 | + <version>3.2.2</version> |
| 125 | + </plugin> |
| 126 | + <plugin> |
| 127 | + <artifactId>maven-install-plugin</artifactId> |
| 128 | + <version>2.5.2</version> |
| 129 | + </plugin> |
| 130 | + <plugin> |
| 131 | + <artifactId>maven-deploy-plugin</artifactId> |
| 132 | + <version>2.8.2</version> |
| 133 | + </plugin> |
| 134 | + </plugins> |
| 135 | + </pluginManagement> |
| 136 | + </build> |
67 | 137 | </project> |
0 commit comments