pom.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. </dependencies>
  37. <build>
  38. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  39. <plugins>
  40. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  41. <plugin>
  42. <artifactId>maven-clean-plugin</artifactId>
  43. <version>3.1.0</version>
  44. </plugin>
  45. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  46. <plugin>
  47. <artifactId>maven-resources-plugin</artifactId>
  48. <version>3.0.2</version>
  49. </plugin>
  50. <plugin>
  51. <artifactId>maven-compiler-plugin</artifactId>
  52. <version>3.8.0</version>
  53. </plugin>
  54. <plugin>
  55. <artifactId>maven-surefire-plugin</artifactId>
  56. <version>2.22.1</version>
  57. </plugin>
  58. <plugin>
  59. <artifactId>maven-jar-plugin</artifactId>
  60. <version>3.0.2</version>
  61. </plugin>
  62. <plugin>
  63. <artifactId>maven-install-plugin</artifactId>
  64. <version>2.5.2</version>
  65. </plugin>
  66. <plugin>
  67. <artifactId>maven-deploy-plugin</artifactId>
  68. <version>2.8.2</version>
  69. </plugin>
  70. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  71. <plugin>
  72. <artifactId>maven-site-plugin</artifactId>
  73. <version>3.7.1</version>
  74. </plugin>
  75. <plugin>
  76. <artifactId>maven-project-info-reports-plugin</artifactId>
  77. <version>3.0.0</version>
  78. </plugin>
  79. </plugins>
  80. </pluginManagement>
  81. </build>
  82. </project>