pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. <parent>
  6. <artifactId>iot-dao</artifactId>
  7. <groupId>cc.iotkit</groupId>
  8. <version>0.5.2-SNAPSHOT</version>
  9. </parent>
  10. <version>0.5.2-SNAPSHOT</version>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>iot-data-serviceImpl-rdb</artifactId>
  13. <description>
  14. 关系型数据库的数据服务实现模块
  15. 如:h2、mysql,由jpa兼容不同数据库
  16. </description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cc.iotkit</groupId>
  20. <artifactId>iot-common-core</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>cc.iotkit</groupId>
  24. <artifactId>iot-data-service</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>cc.iotkit</groupId>
  28. <artifactId>iot-common-tenant</artifactId>
  29. </dependency>
  30. <!--====================第三方库===================-->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-data-jpa</artifactId>
  34. </dependency>
  35. <!-- QueryDSL框架依赖 -->
  36. <dependency>
  37. <groupId>com.querydsl</groupId>
  38. <artifactId>querydsl-apt</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.querydsl</groupId>
  42. <artifactId>querydsl-jpa</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.github.yitter</groupId>
  46. <artifactId>yitter-idgenerator</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.h2database</groupId>
  50. <artifactId>h2</artifactId>
  51. </dependency>
  52. <!-- <dependency>-->
  53. <!-- <groupId>mysql</groupId>-->
  54. <!-- <artifactId>mysql-connector-java</artifactId>-->
  55. <!-- <version>8.0.32</version>-->
  56. <!-- </dependency>-->
  57. <!-- -->
  58. <!-- <dependency>-->
  59. <!-- <groupId>org.postgresql</groupId>-->
  60. <!-- <artifactId>postgresql</artifactId>-->
  61. <!-- <version>42.2.9</version>-->
  62. <!-- </dependency>-->
  63. <dependency>
  64. <groupId>com.baomidou</groupId>
  65. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>cn.hutool</groupId>
  69. <artifactId>hutool-core</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.github.linpeilie</groupId>
  73. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.data</groupId>
  77. <artifactId>spring-data-commons</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>javax.validation</groupId>
  81. <artifactId>validation-api</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.github.biyanwen</groupId>
  85. <artifactId>jpa-comment-spring-boot-starter</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <scope>provided</scope>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <version>3.8.1</version>
  99. <configuration>
  100. <source>${java.version}</source> <!-- depending on your project -->
  101. <target>${java.version}</target> <!-- depending on your project -->
  102. <annotationProcessorPaths>
  103. <path>
  104. <groupId>org.projectlombok</groupId>
  105. <artifactId>lombok</artifactId>
  106. <version>${lombok.version}</version>
  107. </path>
  108. <path>
  109. <groupId>io.github.linpeilie</groupId>
  110. <artifactId>mapstruct-plus-processor</artifactId>
  111. <version>${mapstruct-plus.version}</version>
  112. </path>
  113. <path>
  114. <groupId>org.projectlombok</groupId>
  115. <artifactId>lombok-mapstruct-binding</artifactId>
  116. <version>0.2.0</version>
  117. </path>
  118. <!-- other annotation processors -->
  119. </annotationProcessorPaths>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <!--因为QueryDsl是类型安全的,所以还需要加上Maven APT plugin,使用 APT 自动生成Q类:-->
  124. <groupId>com.mysema.maven</groupId>
  125. <artifactId>apt-maven-plugin</artifactId>
  126. <version>1.1.3</version>
  127. <executions>
  128. <execution>
  129. <phase>generate-sources</phase>
  130. <goals>
  131. <goal>process</goal>
  132. </goals>
  133. <configuration>
  134. <outputDirectory>target/generated-sources/java</outputDirectory>
  135. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. </project>