pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.sf</groupId>
  6. <artifactId>spring</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>spring</name>
  9. <!-- FIXME change it to the project's website -->
  10. <url>http://www.example.com</url>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>junit</groupId>
  19. <artifactId>junit</artifactId>
  20. <version>4.12</version>
  21. <scope>test</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-test</artifactId>
  26. <version>4.3.27.RELEASE</version>
  27. </dependency>
  28. <!-- spring ioc 容器依赖-->
  29. <dependency>
  30. <groupId>org.springframework</groupId>
  31. <artifactId>spring-context</artifactId>
  32. <version>4.3.27.RELEASE</version>
  33. </dependency>
  34. <!-- 数据库连接 -->
  35. <dependency>
  36. <groupId>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. <version>5.1.49</version>
  39. </dependency>
  40. <!-- druid连接池 -->
  41. <dependency>
  42. <groupId>com.alibaba</groupId>
  43. <artifactId>druid</artifactId>
  44. <version>1.1.10</version>
  45. </dependency>
  46. <!-- aop 依赖-->
  47. <dependency>
  48. <groupId>org.springframework</groupId>
  49. <artifactId>spring-aop</artifactId>
  50. <version>4.3.27.RELEASE</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework</groupId>
  54. <artifactId>spring-aspects</artifactId>
  55. <version>4.3.27.RELEASE</version>
  56. </dependency>
  57. <!-- 事务-->
  58. <dependency>
  59. <!-- jdbc-->
  60. <groupId>org.springframework</groupId>
  61. <artifactId>spring-jdbc</artifactId>
  62. <version>4.3.27.RELEASE</version>
  63. </dependency>
  64. <!-- 对象关系映射依赖-->
  65. <dependency>
  66. <groupId>org.springframework</groupId>
  67. <artifactId>spring-orm</artifactId>
  68. <version>4.3.27.RELEASE</version>
  69. </dependency>
  70. <!-- 解析。xml文件-->
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-oxm</artifactId>
  74. <version>4.3.27.RELEASE</version>
  75. </dependency>
  76. <!-- 事务的依赖-->
  77. <dependency>
  78. <groupId>org.springframework</groupId>
  79. <artifactId>spring-tx</artifactId>
  80. <version>4.3.27.RELEASE</version>
  81. </dependency>
  82. </dependencies>
  83. <!-- spring-bom-->
  84. <dependencyManagement>
  85. <dependencies>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-framework-bom</artifactId>
  89. <version>4.3.27.RELEASE</version>
  90. <scope>import</scope>
  91. <type>pom</type>
  92. </dependency>
  93. </dependencies>
  94. </dependencyManagement>
  95. <build>
  96. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  97. <plugins>
  98. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  99. <plugin>
  100. <artifactId>maven-clean-plugin</artifactId>
  101. <version>3.1.0</version>
  102. </plugin>
  103. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  104. <plugin>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <version>3.0.2</version>
  107. </plugin>
  108. <plugin>
  109. <artifactId>maven-compiler-plugin</artifactId>
  110. <version>3.8.0</version>
  111. </plugin>
  112. <plugin>
  113. <artifactId>maven-surefire-plugin</artifactId>
  114. <version>2.22.1</version>
  115. </plugin>
  116. <plugin>
  117. <artifactId>maven-jar-plugin</artifactId>
  118. <version>3.0.2</version>
  119. </plugin>
  120. <plugin>
  121. <artifactId>maven-install-plugin</artifactId>
  122. <version>2.5.2</version>
  123. </plugin>
  124. <plugin>
  125. <artifactId>maven-deploy-plugin</artifactId>
  126. <version>2.8.2</version>
  127. </plugin>
  128. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  129. <plugin>
  130. <artifactId>maven-site-plugin</artifactId>
  131. <version>3.7.1</version>
  132. </plugin>
  133. <plugin>
  134. <artifactId>maven-project-info-reports-plugin</artifactId>
  135. <version>3.0.0</version>
  136. </plugin>
  137. </plugins>
  138. </pluginManagement>
  139. </build>
  140. </project>