pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. 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>
  6. <groupId>org.example</groupId>
  7. <artifactId>zk_product</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <properties>
  11. <spring.version>5.2.7.RELEASE</spring.version>
  12. </properties>
  13. <dependencies>
  14. <!-- Spring -->
  15. <dependency>
  16. <groupId>org.springframework</groupId>
  17. <artifactId>spring-context</artifactId>
  18. <version>${spring.version}</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework</groupId>
  22. <artifactId>spring-beans</artifactId>
  23. <version>${spring.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-webmvc</artifactId>
  28. <version>${spring.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-jdbc</artifactId>
  33. <version>${spring.version}</version>
  34. </dependency>
  35. <!-- Mybatis -->
  36. <dependency>
  37. <groupId>org.mybatis</groupId>
  38. <artifactId>mybatis</artifactId>
  39. <version>3.5.5</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.mybatis</groupId>
  43. <artifactId>mybatis-spring</artifactId>
  44. <version>2.0.5</version>
  45. </dependency>
  46. <!-- 连接池 -->
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>druid</artifactId>
  50. <version>1.1.10</version>
  51. </dependency>
  52. <!-- 数据库 -->
  53. <dependency>
  54. <groupId>mysql</groupId>
  55. <artifactId>mysql-connector-java</artifactId>
  56. <version>8.0.20</version>
  57. </dependency>
  58. <!-- junit -->
  59. <dependency>
  60. <groupId>junit</groupId>
  61. <artifactId>junit</artifactId>
  62. <version>4.12</version>
  63. <scope>test</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.curator</groupId>
  67. <artifactId>curator-recipes</artifactId>
  68. <version>4.2.0</version> <!-- 网友投票最牛逼版本 -->
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <plugins>
  73. <!-- maven内嵌的tomcat插件 -->
  74. <plugin>
  75. <groupId>org.apache.tomcat.maven</groupId>
  76. <!-- 目前apache只提供了tomcat6和tomcat7两个插件 -->
  77. <artifactId>tomcat7-maven-plugin</artifactId>
  78. <version>2.2</version>
  79. <configuration>
  80. <port>8002</port>
  81. <path>/</path>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <!-- 打包完成后,运行服务 -->
  86. <phase>package</phase>
  87. <goals>
  88. <goal>run</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>