pom.xml 4.5 KB

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