123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>iot-dao</artifactId>
- <groupId>cc.iotkit</groupId>
- <version>0.5.0-SNAPSHOT</version>
- </parent>
- <version>0.5.0-SNAPSHOT</version>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>iot-data-serviceImpl-rdb</artifactId>
- <description>
- 关系型数据库的数据服务实现模块
- 如:h2、mysql,由jpa兼容不同数据库
- </description>
- <dependencies>
- <dependency>
- <groupId>cc.iotkit</groupId>
- <artifactId>iot-common-core</artifactId>
- </dependency>
- <dependency>
- <groupId>cc.iotkit</groupId>
- <artifactId>iot-data-service</artifactId>
- </dependency>
- <dependency>
- <groupId>cc.iotkit</groupId>
- <artifactId>iot-common-tenant</artifactId>
- </dependency>
- <!--====================第三方库===================-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <!-- QueryDSL框架依赖 -->
- <dependency>
- <groupId>com.querydsl</groupId>
- <artifactId>querydsl-apt</artifactId>
- </dependency>
- <dependency>
- <groupId>com.querydsl</groupId>
- <artifactId>querydsl-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>com.github.yitter</groupId>
- <artifactId>yitter-idgenerator</artifactId>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>mysql</groupId>-->
- <!-- <artifactId>mysql-connector-java</artifactId>-->
- <!-- <version>8.0.32</version>-->
- <!-- </dependency>-->
- <!-- -->
- <!-- <dependency>-->
- <!-- <groupId>org.postgresql</groupId>-->
- <!-- <artifactId>postgresql</artifactId>-->
- <!-- <version>42.2.9</version>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-core</artifactId>
- </dependency>
- <dependency>
- <groupId>io.github.linpeilie</groupId>
- <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-commons</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- </dependency>
- <dependency>
- <groupId>com.github.biyanwen</groupId>
- <artifactId>jpa-comment-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <source>${java.version}</source> <!-- depending on your project -->
- <target>${java.version}</target> <!-- depending on your project -->
- <annotationProcessorPaths>
- <path>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- </path>
- <path>
- <groupId>io.github.linpeilie</groupId>
- <artifactId>mapstruct-plus-processor</artifactId>
- <version>${mapstruct-plus.version}</version>
- </path>
- <path>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok-mapstruct-binding</artifactId>
- <version>0.2.0</version>
- </path>
- <!-- other annotation processors -->
- </annotationProcessorPaths>
- </configuration>
- </plugin>
- <plugin>
- <!--因为QueryDsl是类型安全的,所以还需要加上Maven APT plugin,使用 APT 自动生成Q类:-->
- <groupId>com.mysema.maven</groupId>
- <artifactId>apt-maven-plugin</artifactId>
- <version>1.1.3</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>process</goal>
- </goals>
- <configuration>
- <outputDirectory>target/generated-sources/java</outputDirectory>
- <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|