pom.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>mybatis</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>mybatis</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. <mybatis-version>3.4.6</mybatis-version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.11</version>
  22. <scope>test</scope>
  23. </dependency>
  24. <!-- mybatis 依赖-->
  25. <dependency>
  26. <groupId>org.mybatis</groupId>
  27. <artifactId>mybatis</artifactId>
  28. <version>${mybatis-version}</version>
  29. </dependency>
  30. <!-- mysql的依赖-->
  31. <dependency>
  32. <groupId>mysql</groupId>
  33. <artifactId>mysql-connector-java</artifactId>
  34. <version>5.1.29</version>
  35. </dependency>
  36. <!--SLF4J+ Log4j的经典组合 日志的了依赖-->
  37. <dependency>
  38. <groupId>org.slf4j</groupId>
  39. <artifactId>slf4j-log4j12</artifactId>
  40. <version>1.7.21</version>
  41. </dependency>
  42. </dependencies>
  43. <build>
  44. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  45. <plugins>
  46. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  47. <plugin>
  48. <artifactId>maven-clean-plugin</artifactId>
  49. <version>3.1.0</version>
  50. </plugin>
  51. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  52. <plugin>
  53. <artifactId>maven-resources-plugin</artifactId>
  54. <version>3.0.2</version>
  55. </plugin>
  56. <plugin>
  57. <artifactId>maven-compiler-plugin</artifactId>
  58. <version>3.8.0</version>
  59. </plugin>
  60. <plugin>
  61. <artifactId>maven-surefire-plugin</artifactId>
  62. <version>2.22.1</version>
  63. </plugin>
  64. <plugin>
  65. <artifactId>maven-jar-plugin</artifactId>
  66. <version>3.0.2</version>
  67. </plugin>
  68. <plugin>
  69. <artifactId>maven-install-plugin</artifactId>
  70. <version>2.5.2</version>
  71. </plugin>
  72. <plugin>
  73. <artifactId>maven-deploy-plugin</artifactId>
  74. <version>2.8.2</version>
  75. </plugin>
  76. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  77. <plugin>
  78. <artifactId>maven-site-plugin</artifactId>
  79. <version>3.7.1</version>
  80. </plugin>
  81. <plugin>
  82. <artifactId>maven-project-info-reports-plugin</artifactId>
  83. <version>3.0.0</version>
  84. </plugin>
  85. </plugins>
  86. </pluginManagement>
  87. </build>
  88. </project>