pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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:file:~/IdeaProjects/openSource/community/comm;MODE=MySQL;AUTO_SERVER=TRUE;DATABASE_TO_UPPER=false;MODE=MYSQL;DB_CLOSE_ON_EXIT=FALSE;</db.url>-->
  24. <db.url>jdbc:h2:mem:dbtest;DATABASE_TO_UPPER=false;MODE=MYSQL;DB_CLOSE_ON_EXIT=FALSE;</db.url>
  25. <db.user>sa</db.user>
  26. <db.password>123</db.password>
  27. <db.driver>org.h2.Driver</db.driver>
  28. <db.schema>classpath:schema.sql</db.schema>
  29. <!-- <db.schema></db.schema>-->
  30. <!-- <db.data>classpath:data.sql</db.data>-->
  31. <db.data></db.data>
  32. <db.initialization-mode>always</db.initialization-mode>
  33. <db.continue-on-error>false</db.continue-on-error>
  34. </properties>
  35. <activation>
  36. <activeByDefault>true</activeByDefault>
  37. </activation>
  38. </profile>
  39. <profile>
  40. <id>mysql</id>
  41. <properties>
  42. <db.url>jdbc:mysql://127.0.0.1:3306/community?useUnicode=true&amp;characterEncoding=UTF-8</db.url>
  43. <db.user>root</db.user>
  44. <db.password>root</db.password>
  45. <db.driver>com.mysql.jdbc.Driver</db.driver>
  46. <db.schema></db.schema>
  47. <db.data></db.data>
  48. <db.initialization-mode>never</db.initialization-mode>
  49. <db.continue-on-error>true</db.continue-on-error>
  50. </properties>
  51. </profile>
  52. </profiles>
  53. <dependencies>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-web</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-jdbc</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.mybatis.spring.boot</groupId>
  68. <artifactId>mybatis-spring-boot-starter</artifactId>
  69. <version>2.0.1</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.squareup.okhttp3</groupId>
  78. <artifactId>okhttp</artifactId>
  79. <version>3.14.1</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.alibaba</groupId>
  83. <artifactId>fastjson</artifactId>
  84. <version>1.2.57</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. <version>5.1.45</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.google.guava</groupId>
  93. <artifactId>guava</artifactId>
  94. <version>23.0</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.h2database</groupId>
  98. <artifactId>h2</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.locationtech.jts</groupId>
  102. <artifactId>jts-core</artifactId>
  103. <version>1.16.1</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.projectlombok</groupId>
  107. <artifactId>lombok</artifactId>
  108. <version>1.18.6</version>
  109. <scope>provided</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-devtools</artifactId>
  114. <optional>true</optional>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.commons</groupId>
  118. <artifactId>commons-lang3</artifactId>
  119. <version>3.9</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>commons-io</groupId>
  123. <artifactId>commons-io</artifactId>
  124. <version>2.7</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>cn.ucloud.ufile</groupId>
  128. <artifactId>ufile-client-java</artifactId>
  129. <version>2.1.1</version>
  130. </dependency>
  131. </dependencies>
  132. <build>
  133. <resources>
  134. <resource>
  135. <directory>src/main/resources</directory>
  136. <filtering>true</filtering>
  137. </resource>
  138. </resources>
  139. <plugins>
  140. <plugin>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-maven-plugin</artifactId>
  143. <version>2.1.4.RELEASE</version>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.flywaydb</groupId>
  147. <artifactId>flyway-maven-plugin</artifactId>
  148. <version>5.2.4</version>
  149. <configuration>
  150. <url>${db.url}community</url>
  151. <user>${db.user}</user>
  152. <password>${db.password}</password>
  153. </configuration>
  154. <dependencies>
  155. <dependency>
  156. <groupId>mysql</groupId>
  157. <artifactId>mysql-connector-java</artifactId>
  158. <version>5.1.45</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.h2database</groupId>
  162. <artifactId>h2</artifactId>
  163. <version>1.4.199</version>
  164. </dependency>
  165. </dependencies>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.mybatis.generator</groupId>
  169. <artifactId>mybatis-generator-maven-plugin</artifactId>
  170. <version>1.3.7</version>
  171. <configuration>
  172. <overwrite>true</overwrite>
  173. <configurationFile>${basedir}/target/classes/generatorConfig.xml</configurationFile>
  174. </configuration>
  175. <dependencies>
  176. <dependency>
  177. <groupId>com.h2database</groupId>
  178. <artifactId>h2</artifactId>
  179. <version>1.4.199</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>mysql</groupId>
  183. <artifactId>mysql-connector-java</artifactId>
  184. <version>5.1.45</version>
  185. </dependency>
  186. </dependencies>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. </project>