pom.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.cdxw.mybatis</groupId>
  5. <artifactId>mybatis_mbg</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>mybatis_mbg</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.mybatis</groupId>
  16. <artifactId>mybatis</artifactId>
  17. <version>3.5.7</version>
  18. </dependency>
  19. <!-- junit测试 -->
  20. <dependency>
  21. <groupId>junit</groupId>
  22. <artifactId>junit</artifactId>
  23. <version>4.12</version>
  24. <scope>test</scope>
  25. </dependency>
  26. <!-- log4j日志 -->
  27. <dependency>
  28. <groupId>log4j</groupId>
  29. <artifactId>log4j</artifactId>
  30. <version>1.2.17</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>mysql</groupId>
  34. <artifactId>mysql-connector-java</artifactId>
  35. <version>8.0.16</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.github.pagehelper</groupId>
  39. <artifactId>pagehelper</artifactId>
  40. <version>5.2.0</version>
  41. </dependency>
  42. </dependencies>
  43. <!-- 控制Maven在构建过程中相关配置 -->
  44. <build>
  45. <!-- 构建过程中用到的插件 -->
  46. <plugins>
  47. <!-- 具体插件,逆向工程的操作是以构建过程中插件形式出现的 -->
  48. <plugin>
  49. <groupId>org.mybatis.generator</groupId>
  50. <artifactId>mybatis-generator-maven-plugin</artifactId>
  51. <version>1.3.0</version>
  52. <!-- 插件的依赖 -->
  53. <dependencies>
  54. <!-- 逆向工程的核心依赖 -->
  55. <dependency>
  56. <groupId>org.mybatis.generator</groupId>
  57. <artifactId>mybatis-generator-core</artifactId>
  58. <version>1.3.2</version>
  59. </dependency>
  60. <!-- MySQL驱动 -->
  61. <dependency>
  62. <groupId>mysql</groupId>
  63. <artifactId>mysql-connector-java</artifactId>
  64. <version>8.0.16</version>
  65. </dependency>
  66. </dependencies>
  67. </plugin>
  68. </plugins>
  69. </build>
  70. </project>