pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. </profiles>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-jdbc</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.mybatis.spring.boot</groupId>
  47. <artifactId>mybatis-spring-boot-starter</artifactId>
  48. <version>2.0.1</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.squareup.okhttp3</groupId>
  57. <artifactId>okhttp</artifactId>
  58. <version>3.14.1</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.alibaba</groupId>
  62. <artifactId>fastjson</artifactId>
  63. <version>1.2.57</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. <version>5.1.45</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.h2database</groupId>
  72. <artifactId>h2</artifactId>
  73. <version>1.4.199</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.projectlombok</groupId>
  77. <artifactId>lombok</artifactId>
  78. <version>1.18.6</version>
  79. <scope>provided</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-devtools</artifactId>
  84. <optional>true</optional>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.commons</groupId>
  88. <artifactId>commons-lang3</artifactId>
  89. <version>3.9</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>cn.ucloud.ufile</groupId>
  93. <artifactId>ufile-client-java</artifactId>
  94. <version>2.1.1</version>
  95. </dependency>
  96. </dependencies>
  97. <build>
  98. <plugins>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.flywaydb</groupId>
  105. <artifactId>flyway-maven-plugin</artifactId>
  106. <version>5.2.4</version>
  107. <configuration>
  108. <url>${db.url}</url>
  109. <user>${db.user}</user>
  110. <password>${db.password}</password>
  111. </configuration>
  112. <dependencies>
  113. <dependency>
  114. <groupId>mysql</groupId>
  115. <artifactId>mysql-connector-java</artifactId>
  116. <version>5.1.45</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.h2database</groupId>
  120. <artifactId>h2</artifactId>
  121. <version>1.4.199</version>
  122. </dependency>
  123. </dependencies>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.mybatis.generator</groupId>
  127. <artifactId>mybatis-generator-maven-plugin</artifactId>
  128. <version>1.3.7</version>
  129. <dependencies>
  130. <dependency>
  131. <groupId>com.h2database</groupId>
  132. <artifactId>h2</artifactId>
  133. <version>1.4.199</version>
  134. </dependency>
  135. </dependencies>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>