pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.3</version>
  9. </parent>
  10. <version>0.5.3</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>cn.hutool</groupId>
  65. <artifactId>hutool-core</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.github.linpeilie</groupId>
  69. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.data</groupId>
  73. <artifactId>spring-data-commons</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.github.biyanwen</groupId>
  77. <artifactId>jpa-comment-spring-boot-starter</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.projectlombok</groupId>
  81. <artifactId>lombok</artifactId>
  82. <scope>provided</scope>
  83. </dependency>
  84. </dependencies>
  85. <build>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-compiler-plugin</artifactId>
  90. <version>3.8.1</version>
  91. <configuration>
  92. <source>${java.version}</source> <!-- depending on your project -->
  93. <target>${java.version}</target> <!-- depending on your project -->
  94. <annotationProcessorPaths>
  95. <path>
  96. <groupId>org.projectlombok</groupId>
  97. <artifactId>lombok</artifactId>
  98. <version>${lombok.version}</version>
  99. </path>
  100. <path>
  101. <groupId>io.github.linpeilie</groupId>
  102. <artifactId>mapstruct-plus-processor</artifactId>
  103. <version>${mapstruct-plus.version}</version>
  104. </path>
  105. <path>
  106. <groupId>org.projectlombok</groupId>
  107. <artifactId>lombok-mapstruct-binding</artifactId>
  108. <version>0.2.0</version>
  109. </path>
  110. <!-- other annotation processors -->
  111. </annotationProcessorPaths>
  112. </configuration>
  113. </plugin>
  114. <plugin>
  115. <!--因为QueryDsl是类型安全的,所以还需要加上Maven APT plugin,使用 APT 自动生成Q类:-->
  116. <groupId>com.mysema.maven</groupId>
  117. <artifactId>apt-maven-plugin</artifactId>
  118. <version>1.1.3</version>
  119. <executions>
  120. <execution>
  121. <phase>generate-sources</phase>
  122. <goals>
  123. <goal>process</goal>
  124. </goals>
  125. <configuration>
  126. <outputDirectory>target/generated-sources/java</outputDirectory>
  127. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>