pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>linkwechat-cloud</artifactId>
  6. <groupId>com.linkwechat</groupId>
  7. <version>3.1.0</version>
  8. <relativePath>../pom.xml</relativePath>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>linkwe-api</artifactId>
  12. <properties>
  13. <java.version>1.8</java.version>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-validation</artifactId>
  30. </dependency>
  31. <!-- 阿里数据库连接池 -->
  32. <dependency>
  33. <groupId>com.alibaba</groupId>
  34. <artifactId>druid-spring-boot-starter</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-test</artifactId>
  39. <version>2.6.1</version>
  40. <scope>test</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.junit.jupiter</groupId>
  44. <artifactId>junit-jupiter</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. <!-- liquibase -->
  48. <!--<dependency>
  49. <groupId>org.liquibase</groupId>
  50. <artifactId>liquibase-core</artifactId>
  51. </dependency>-->
  52. <!-- swagger2-->
  53. <dependency>
  54. <groupId>io.springfox</groupId>
  55. <artifactId>springfox-swagger2</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.linkwechat</groupId>
  59. <artifactId>linkwe-service</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>mysql</groupId>
  63. <artifactId>mysql-connector-java</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba.cloud</groupId>
  67. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  68. <version>2021.1</version>
  69. </dependency>
  70. <!-- SpringCloud Alibaba Nacos Config -->
  71. <dependency>
  72. <groupId>com.alibaba.cloud</groupId>
  73. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <finalName>lw-api</finalName>
  78. <plugins>
  79. <plugin>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-maven-plugin</artifactId>
  82. <version>2.3.3.RELEASE</version>
  83. <executions>
  84. <execution>
  85. <goals>
  86. <goal>repackage</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.liquibase</groupId>
  93. <artifactId>liquibase-maven-plugin</artifactId>
  94. <version>4.8.0</version>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.liquibase</groupId>
  98. <artifactId>liquibase-core</artifactId>
  99. <version>4.8.0</version>
  100. </dependency>
  101. </dependencies>
  102. <configuration>
  103. <propertyFile>src/main/resources/liquibase-db.properties</propertyFile>
  104. <changeLogFile>src/main/resources/db/changelog-master.xml</changeLogFile>
  105. <diffChangeLogFile>src/main/resources/db/changelog/changelog_${maven.build.timestamp}.xml</diffChangeLogFile>
  106. <outputChangeLogFile>src/main/resources/db/changelog/changelog_original.xml</outputChangeLogFile>
  107. <dropFirst>false</dropFirst>
  108. <defaultSchemaName/>
  109. <verbose>true</verbose>
  110. <logging>debug</logging>
  111. <promptOnNonLocalDatabase>true</promptOnNonLocalDatabase>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. </build>
  116. </project>