149 lines
5.1 KiB
XML
149 lines
5.1 KiB
XML
<?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-common-dao</artifactId>
|
||
<groupId>cc.iotkit</groupId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
<version>${revision}</version>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<artifactId>iot-data-serviceImpl-rdb</artifactId>
|
||
<description>
|
||
关系型数据库的数据服务实现模块
|
||
如:h2、mysql,由jpa兼容不同数据库
|
||
</description>
|
||
|
||
<dependencies>
|
||
|
||
<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.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>8.0.32</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-core</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>io.github.linpeilie</groupId>-->
|
||
<!-- <artifactId>mapstruct-plus</artifactId>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>io.github.linpeilie</groupId>
|
||
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.biyanwen</groupId>
|
||
<artifactId>jpa-comment-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cc.iotkit</groupId>
|
||
<artifactId>iot-common-core</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cc.iotkit</groupId>
|
||
<artifactId>iot-data-service</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.data</groupId>
|
||
<artifactId>spring-data-commons</artifactId>
|
||
<version>2.7.11</version>
|
||
</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>
|