pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.hw</groupId>
  7. <artifactId>wechat-openiddata</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.2.10.RELEASE</version>
  14. </parent>
  15. <dependencies>
  16. <!--<dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starters</artifactId>
  19. <version>2.2.11.RELEASE</version>
  20. </dependency>-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <version>2.2.10.RELEASE</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>mysql</groupId>
  28. <artifactId>mysql-connector-java</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.alibaba</groupId>
  32. <artifactId>druid</artifactId>
  33. <version>1.2.2</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.github.pagehelper</groupId>
  37. <artifactId>pagehelper-spring-boot-starter</artifactId>
  38. <version>1.3.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mybatis.spring.boot</groupId>
  42. <artifactId>mybatis-spring-boot-starter</artifactId>
  43. <version>2.1.3</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.mybatis</groupId>
  47. <artifactId>mybatis</artifactId>
  48. <version>3.5.5</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.projectlombok</groupId>
  52. <artifactId>lombok</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>fastjson</artifactId>
  57. <version>1.2.74</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.httpcomponents</groupId>
  61. <artifactId>httpclient</artifactId>
  62. </dependency>
  63. <!-- swagger2 -->
  64. <dependency>
  65. <groupId>io.springfox</groupId>
  66. <artifactId>springfox-swagger2</artifactId>
  67. <version>2.9.2</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.springfox</groupId>
  71. <artifactId>springfox-swagger-ui</artifactId>
  72. <version>2.9.2</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-data-redis</artifactId>
  77. </dependency>
  78. <!--<dependency>
  79. <groupId>org.crazycake</groupId>
  80. <artifactId>shiro-redis</artifactId>
  81. <version>2.4.2.1-RELEASE</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.shiro</groupId>
  85. <artifactId>shiro-spring</artifactId>
  86. <version>1.4.0</version>
  87. </dependency>-->
  88. </dependencies>
  89. <build>
  90. <plugins>
  91. <!-- 自生产代码配置 -->
  92. <plugin>
  93. <groupId>org.mybatis.generator</groupId>
  94. <artifactId>mybatis-generator-maven-plugin</artifactId>
  95. <version>1.3.5</version>
  96. <dependencies>
  97. <dependency>
  98. <groupId> mysql</groupId>
  99. <artifactId> mysql-connector-java</artifactId>
  100. <version>5.1.39</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.mybatis.generator</groupId>
  104. <artifactId>mybatis-generator-core</artifactId>
  105. <version>1.3.5</version>
  106. </dependency>
  107. </dependencies>
  108. <executions>
  109. <execution>
  110. <id>Generate MyBatis Artifacts</id>
  111. <phase>deploy</phase>
  112. <goals>
  113. <goal>generate</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. <configuration>
  118. <!--允许移动生成的文件 -->
  119. <verbose>true</verbose>
  120. <!-- 是否覆盖 -->
  121. <overwrite>true</overwrite>
  122. <!-- 自动生成的配置 -->
  123. <configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
  124. </configuration>
  125. </plugin>
  126. <!-- 打包方式 -->
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. <executions>
  131. <execution>
  132. <goals>
  133. <goal>repackage</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. </build>
  140. </project>