pom.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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>com.ahau</groupId>
  6. <artifactId>AhpestWeb</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>AhpestWeb Maven Webapp</name>
  10. <!-- FIXME change it to the project's website -->
  11. <url>http://www.example.com</url>
  12. <properties>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <servlet.version>3.1.0</servlet.version>
  17. <gson.version>2.3.1</gson.version>
  18. <mysql.version>8.0.12</mysql.version>
  19. <junit.version>4.12</junit.version>
  20. <commons-collections.version>3.2.1</commons-collections.version>
  21. <commons.beanutils.version>1.7.0</commons.beanutils.version>
  22. <ezmorph.version>1.0.6</ezmorph.version>
  23. <json.version>2.4</json.version>
  24. </properties>
  25. <dependencies>
  26. <!-- 添加sevlet支持 -->
  27. <dependency>
  28. <groupId>javax.servlet</groupId>
  29. <artifactId>javax.servlet-api</artifactId>
  30. <version>${servlet.version}</version>
  31. <scope>provided</scope>
  32. </dependency>
  33. <!--json-->
  34. <dependency>
  35. <groupId>com.google.code.gson</groupId>
  36. <artifactId>gson</artifactId>
  37. <version>${gson.version}</version>
  38. </dependency>
  39. <!-- jdbc驱动包 -->
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. <version>${mysql.version}</version>
  44. </dependency>
  45. <!-- apache共公包 -->
  46. <dependency>
  47. <groupId>commons-beanutils</groupId>
  48. <artifactId>commons-beanutils</artifactId>
  49. <version>${commons.beanutils.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>commons-collections</groupId>
  53. <artifactId>commons-collections</artifactId>
  54. <version>${commons-collections.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>net.sf.ezmorph</groupId>
  58. <artifactId>ezmorph</artifactId>
  59. <version>${ezmorph.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>net.sf.json-lib</groupId>
  63. <artifactId>json-lib</artifactId>
  64. <version>${json.version}</version>
  65. <classifier>jdk15</classifier>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <resources>
  70. <!-- 编译之后包含xml -->
  71. <resource>
  72. <directory>src/main/java</directory>
  73. <includes>
  74. <include>**/*.xml</include>
  75. </includes>
  76. <filtering>true</filtering>
  77. </resource>
  78. <!-- 编译之后包含xml和properties -->
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <includes>
  82. <include>**/*</include>
  83. </includes>
  84. <filtering>true</filtering>
  85. </resource>
  86. </resources>
  87. </build>
  88. </project>