pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <!-- spring ioc 容器依赖-->
  24. <dependency>
  25. <groupId>org.springframework</groupId>
  26. <artifactId>spring-context</artifactId>
  27. <version>4.3.27.RELEASE</version>
  28. </dependency>
  29. </dependencies>
  30. <!-- spring-bom-->
  31. <dependencyManagement>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.springframework</groupId>
  35. <artifactId>spring-framework-bom</artifactId>
  36. <version>4.3.27.RELEASE</version>
  37. <scope>import</scope>
  38. <type>pom</type>
  39. </dependency>
  40. </dependencies>
  41. </dependencyManagement>
  42. <build>
  43. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  44. <plugins>
  45. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  46. <plugin>
  47. <artifactId>maven-clean-plugin</artifactId>
  48. <version>3.1.0</version>
  49. </plugin>
  50. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  51. <plugin>
  52. <artifactId>maven-resources-plugin</artifactId>
  53. <version>3.0.2</version>
  54. </plugin>
  55. <plugin>
  56. <artifactId>maven-compiler-plugin</artifactId>
  57. <version>3.8.0</version>
  58. </plugin>
  59. <plugin>
  60. <artifactId>maven-surefire-plugin</artifactId>
  61. <version>2.22.1</version>
  62. </plugin>
  63. <plugin>
  64. <artifactId>maven-jar-plugin</artifactId>
  65. <version>3.0.2</version>
  66. </plugin>
  67. <plugin>
  68. <artifactId>maven-install-plugin</artifactId>
  69. <version>2.5.2</version>
  70. </plugin>
  71. <plugin>
  72. <artifactId>maven-deploy-plugin</artifactId>
  73. <version>2.8.2</version>
  74. </plugin>
  75. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  76. <plugin>
  77. <artifactId>maven-site-plugin</artifactId>
  78. <version>3.7.1</version>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-project-info-reports-plugin</artifactId>
  82. <version>3.0.0</version>
  83. </plugin>
  84. </plugins>
  85. </pluginManagement>
  86. </build>
  87. </project>