pom.xml 5.0 KB

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