1. <?xml version="1.0" encoding="UTF-8"?>
    2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    4. <modelVersion>4.0.0</modelVersion>
    5. <groupId>cn.targetpath</groupId>
    6. <artifactId>spring-demo-01</artifactId>
    7. <version>1.0-SNAPSHOT</version>
    8. <packaging>war</packaging>
    9. <name>spring-demo-01 Maven Webapp</name>
    10. <!-- FIXME change it to the project's website -->
    11. <url>http://www.example.com</url>
    12. <properties>
    13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    14. <maven.compiler.source>1.8</maven.compiler.source>
    15. <maven.compiler.target>1.8</maven.compiler.target>
    16. <spring-version>5.3.3</spring-version>
    17. <commons-logging>1.2</commons-logging>
    18. <commons-io.version>2.6</commons-io.version>
    19. <commons-fileupload.version>1.3.3</commons-fileupload.version>
    20. <log4j.version>1.2.17</log4j.version>
    21. <lombok.version>1.18.12</lombok.version>
    22. <jackson.version>2.11.2</jackson.version>
    23. <classmate.version>1.4.0</classmate.version>
    24. <servlet-api.version>3.1.0</servlet-api.version>
    25. <javax-el.version>3.0.1-b06</javax-el.version>
    26. <validation.version>2.0.1.Final</validation.version>
    27. <mybatis.version>3.5.3</mybatis.version>
    28. <mysql.version>5.1.47</mysql.version>
    29. </properties>
    30. <dependencies>
    31. <dependency>
    32. <groupId>junit</groupId>
    33. <artifactId>junit</artifactId>
    34. <version>4.12</version>
    35. <scope>test</scope>
    36. </dependency>
    37. <dependency>
    38. <groupId>org.springframework</groupId>
    39. <artifactId>spring-context</artifactId>
    40. <version>${spring-version}</version>
    41. </dependency>
    42. <dependency>
    43. <groupId>org.springframework</groupId>
    44. <artifactId>spring-beans</artifactId>
    45. <version>${spring-version}</version>
    46. </dependency>
    47. <dependency>
    48. <groupId>org.springframework</groupId>
    49. <artifactId>spring-core</artifactId>
    50. <version>${spring-version}</version>
    51. </dependency>
    52. <dependency>
    53. <groupId>org.springframework</groupId>
    54. <artifactId>spring-expression</artifactId>
    55. <version>${spring-version}</version>
    56. </dependency>
    57. <dependency>
    58. <groupId>org.springframework</groupId>
    59. <artifactId>spring-aop</artifactId>
    60. <version>${spring-version}</version>
    61. </dependency>
    62. <dependency>
    63. <groupId>org.springframework</groupId>
    64. <artifactId>spring-web</artifactId>
    65. <version>${spring-version}</version>
    66. </dependency>
    67. <dependency>
    68. <groupId>org.springframework</groupId>
    69. <artifactId>spring-webmvc</artifactId>
    70. <version>${spring-version}</version>
    71. </dependency>
    72. <dependency>
    73. <groupId>commons-logging</groupId>
    74. <artifactId>commons-logging</artifactId>
    75. <version>${commons-logging}</version>
    76. </dependency>
    77. <dependency>
    78. <groupId>commons-io</groupId>
    79. <artifactId>commons-io</artifactId>
    80. <version>${commons-io.version}</version>
    81. </dependency>
    82. <dependency>
    83. <groupId>commons-fileupload</groupId>
    84. <artifactId>commons-fileupload</artifactId>
    85. <version>${commons-fileupload.version}</version>
    86. </dependency>
    87. <dependency>
    88. <groupId>log4j</groupId>
    89. <artifactId>log4j</artifactId>
    90. <version>${log4j.version}</version>
    91. </dependency>
    92. <!-- jackson -->
    93. <dependency>
    94. <groupId>com.fasterxml.jackson.core</groupId>
    95. <artifactId>jackson-databind</artifactId>
    96. <version>${jackson.version}</version>
    97. </dependency>
    98. <dependency>
    99. <groupId>com.fasterxml.jackson.core</groupId>
    100. <artifactId>jackson-core</artifactId>
    101. <version>${jackson.version}</version>
    102. </dependency>
    103. <dependency>
    104. <groupId>com.fasterxml.jackson.core</groupId>
    105. <artifactId>jackson-annotations</artifactId>
    106. <version>${jackson.version}</version>
    107. </dependency>
    108. <dependency>
    109. <groupId>org.projectlombok</groupId>
    110. <artifactId>lombok</artifactId>
    111. <version>${lombok.version}</version>
    112. <scope>provided</scope>
    113. </dependency>
    114. <dependency>
    115. <groupId>javax.servlet</groupId>
    116. <artifactId>javax.servlet-api</artifactId>
    117. <version>${servlet-api.version}</version>
    118. <scope>provided</scope>
    119. </dependency>
    120. <dependency>
    121. <groupId>com.fasterxml</groupId>
    122. <artifactId>classmate</artifactId>
    123. <version>${classmate.version}</version>
    124. </dependency>
    125. <dependency>
    126. <groupId>javax.el</groupId>
    127. <artifactId>javax.el-api</artifactId>
    128. <version>${javax-el.version}</version>
    129. </dependency>
    130. <dependency>
    131. <groupId>javax.validation</groupId>
    132. <artifactId>validation-api</artifactId>
    133. <version>${validation.version}</version>
    134. </dependency>
    135. <!-- mybatis -->
    136. <dependency>
    137. <groupId>org.mybatis</groupId>
    138. <artifactId>mybatis</artifactId>
    139. <version>${mybatis.version}</version>
    140. </dependency>
    141. <dependency>
    142. <groupId>mysql</groupId>
    143. <artifactId>mysql-connector-java</artifactId>
    144. <version>${mysql.version}</version>
    145. </dependency>
    146. </dependencies>
    147. <build>
    148. <finalName>spring-demo-01</finalName>
    149. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
    150. <plugins>
    151. <plugin>
    152. <artifactId>maven-clean-plugin</artifactId>
    153. <version>3.1.0</version>
    154. </plugin>
    155. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
    156. <plugin>
    157. <artifactId>maven-resources-plugin</artifactId>
    158. <version>3.0.2</version>
    159. </plugin>
    160. <plugin>
    161. <artifactId>maven-compiler-plugin</artifactId>
    162. <version>3.8.0</version>
    163. </plugin>
    164. <plugin>
    165. <artifactId>maven-surefire-plugin</artifactId>
    166. <version>2.22.1</version>
    167. </plugin>
    168. <plugin>
    169. <artifactId>maven-war-plugin</artifactId>
    170. <version>3.2.2</version>
    171. </plugin>
    172. <plugin>
    173. <artifactId>maven-install-plugin</artifactId>
    174. <version>2.5.2</version>
    175. </plugin>
    176. <plugin>
    177. <artifactId>maven-deploy-plugin</artifactId>
    178. <version>2.8.2</version>
    179. </plugin>
    180. <plugin>
    181. <artifactId>maven-package-plugin</artifactId>
    182. <version>2.2</version>
    183. </plugin>
    184. </plugins>
    185. </pluginManagement>
    186. </build>
    187. </project>