pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>life.majiang.community</groupId>
  12. <artifactId>community</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>community</name>
  15. <description>community</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <profiles>
  20. <profile>
  21. <id>dev</id>
  22. <properties>
  23. <db.url>jdbc:h2:~/community</db.url>
  24. <db.user>sa</db.user>
  25. <db.password>123</db.password>
  26. </properties>
  27. <activation>
  28. <activeByDefault>true</activeByDefault>
  29. </activation>
  30. </profile>
  31. <profile>
  32. <id>mysql</id>
  33. <properties>
  34. <db.url>jdbc:mysql://127.0.0.1:3306/</db.url>
  35. <db.user>root</db.user>
  36. <db.password>root</db.password>
  37. <db.driver>com.mysql.jdbc.Driver</db.driver>
  38. </properties>
  39. </profile>
  40. </profiles>
  41. <dependencies>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-web</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-jdbc</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.mybatis.spring.boot</groupId>
  56. <artifactId>mybatis-spring-boot-starter</artifactId>
  57. <version>2.0.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-test</artifactId>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.squareup.okhttp3</groupId>
  66. <artifactId>okhttp</artifactId>
  67. <version>3.14.1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>fastjson</artifactId>
  72. <version>1.2.83</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>mysql</groupId>
  76. <artifactId>mysql-connector-java</artifactId>
  77. <version>5.1.45</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.google.guava</groupId>
  81. <artifactId>guava</artifactId>
  82. <version>23.0</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.h2database</groupId>
  86. <artifactId>h2</artifactId>
  87. <version>1.4.199</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <version>1.18.6</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-devtools</artifactId>
  98. <optional>true</optional>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.commons</groupId>
  102. <artifactId>commons-lang3</artifactId>
  103. <version>3.9</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>commons-io</groupId>
  107. <artifactId>commons-io</artifactId>
  108. <version>2.7</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>cn.ucloud.ufile</groupId>
  112. <artifactId>ufile-client-java</artifactId>
  113. <version>2.1.1</version>
  114. </dependency>
  115. </dependencies>
  116. <build>
  117. <resources>
  118. <resource>
  119. <directory>src/main/resources</directory>
  120. <filtering>true</filtering>
  121. </resource>
  122. </resources>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-maven-plugin</artifactId>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.flywaydb</groupId>
  130. <artifactId>flyway-maven-plugin</artifactId>
  131. <version>5.2.4</version>
  132. <configuration>
  133. <url>${db.url}community</url>
  134. <user>${db.user}</user>
  135. <password>${db.password}</password>
  136. </configuration>
  137. <dependencies>
  138. <dependency>
  139. <groupId>mysql</groupId>
  140. <artifactId>mysql-connector-java</artifactId>
  141. <version>5.1.45</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.h2database</groupId>
  145. <artifactId>h2</artifactId>
  146. <version>1.4.199</version>
  147. </dependency>
  148. </dependencies>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.mybatis.generator</groupId>
  152. <artifactId>mybatis-generator-maven-plugin</artifactId>
  153. <version>1.3.7</version>
  154. <configuration>
  155. <overwrite>true</overwrite>
  156. <configurationFile>${basedir}/target/classes/generatorConfig.xml</configurationFile>
  157. </configuration>
  158. <dependencies>
  159. <dependency>
  160. <groupId>com.h2database</groupId>
  161. <artifactId>h2</artifactId>
  162. <version>1.4.199</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>mysql</groupId>
  166. <artifactId>mysql-connector-java</artifactId>
  167. <version>5.1.45</version>
  168. </dependency>
  169. </dependencies>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </project>