pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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-common-dao</artifactId>
  7. <groupId>cc.iotkit</groupId>
  8. <version>${revision}</version>
  9. </parent>
  10. <version>${revision}</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>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-data-jpa</artifactId>
  21. </dependency>
  22. <!-- QueryDSL框架依赖 -->
  23. <dependency>
  24. <groupId>com.querydsl</groupId>
  25. <artifactId>querydsl-apt</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.querydsl</groupId>
  29. <artifactId>querydsl-jpa</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.h2database</groupId>
  33. <artifactId>h2</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>commons-io</groupId>
  37. <artifactId>commons-io</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>cn.hutool</groupId>
  41. <artifactId>hutool-core</artifactId>
  42. </dependency>
  43. <!-- <dependency>-->
  44. <!-- <groupId>io.github.linpeilie</groupId>-->
  45. <!-- <artifactId>mapstruct-plus</artifactId>-->
  46. <!-- </dependency>-->
  47. <dependency>
  48. <groupId>io.github.linpeilie</groupId>
  49. <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok</artifactId>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.github.biyanwen</groupId>
  58. <artifactId>jpa-comment-spring-boot-starter</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>cc.iotkit</groupId>
  62. <artifactId>iot-common-core</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>cc.iotkit</groupId>
  66. <artifactId>iot-data-service</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.data</groupId>
  70. <artifactId>spring-data-commons</artifactId>
  71. <version>2.7.11</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-compiler-plugin</artifactId>
  79. <version>3.8.1</version>
  80. <configuration>
  81. <source>${java.version}</source> <!-- depending on your project -->
  82. <target>${java.version}</target> <!-- depending on your project -->
  83. <annotationProcessorPaths>
  84. <path>
  85. <groupId>org.projectlombok</groupId>
  86. <artifactId>lombok</artifactId>
  87. <version>${lombok.version}</version>
  88. </path>
  89. <path>
  90. <groupId>io.github.linpeilie</groupId>
  91. <artifactId>mapstruct-plus-processor</artifactId>
  92. <version>${mapstruct-plus.version}</version>
  93. </path>
  94. <path>
  95. <groupId>org.projectlombok</groupId>
  96. <artifactId>lombok-mapstruct-binding</artifactId>
  97. <version>0.2.0</version>
  98. </path>
  99. <!-- other annotation processors -->
  100. </annotationProcessorPaths>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <!--因为QueryDsl是类型安全的,所以还需要加上Maven APT plugin,使用 APT 自动生成Q类:-->
  105. <groupId>com.mysema.maven</groupId>
  106. <artifactId>apt-maven-plugin</artifactId>
  107. <version>1.1.3</version>
  108. <executions>
  109. <execution>
  110. <phase>generate-sources</phase>
  111. <goals>
  112. <goal>process</goal>
  113. </goals>
  114. <configuration>
  115. <outputDirectory>target/generated-sources/java</outputDirectory>
  116. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. </plugins>
  122. </build>
  123. </project>