2022-05-22 17:40:43 +00:00
|
|
|
<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">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2022-05-16 16:18:26 +00:00
|
|
|
|
2022-05-22 17:40:43 +00:00
|
|
|
<groupId>com.yuandian.dataflow</groupId>
|
|
|
|
<artifactId>dataflow</artifactId>
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<packaging>jar</packaging>
|
2022-05-16 16:18:26 +00:00
|
|
|
|
2022-05-22 17:40:43 +00:00
|
|
|
<name>dataflow</name>
|
|
|
|
<url>http://maven.apache.org</url>
|
2022-05-16 16:18:26 +00:00
|
|
|
|
2022-05-22 17:40:43 +00:00
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
|
|
<java.version>11</java.version>
|
2022-05-17 16:56:52 +00:00
|
|
|
|
|
|
|
<protobuf.version>3.20.1</protobuf.version>
|
|
|
|
<protostuff.version>1.7.4</protostuff.version>
|
2022-05-22 17:40:43 +00:00
|
|
|
<javax.annotation.version>1.3.2</javax.annotation.version>
|
2022-05-29 17:03:03 +00:00
|
|
|
<ratis.version>2.3.0</ratis.version>
|
2022-05-22 17:40:43 +00:00
|
|
|
<grpc.version>1.46.0</grpc.version>
|
|
|
|
<slf4j.version>1.7.36</slf4j.version>
|
|
|
|
<jraft.version>1.3.10</jraft.version>
|
2022-06-01 10:43:01 +00:00
|
|
|
<spring.boot.web>2.7.0</spring.boot.web>
|
|
|
|
<gson.version>2.9.0</gson.version>
|
2022-05-22 17:40:43 +00:00
|
|
|
</properties>
|
2022-05-17 16:56:52 +00:00
|
|
|
|
2022-05-22 17:40:43 +00:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>${slf4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.alipay.sofa</groupId>
|
|
|
|
<artifactId>jraft-core</artifactId>
|
|
|
|
<version>${jraft.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
2022-05-29 17:03:03 +00:00
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.ratis/ratis-common -->
|
|
|
|
<dependency>
|
2022-06-01 10:43:01 +00:00
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
<artifactId>ratis-common</artifactId>
|
|
|
|
<version>${ratis.version}</version>
|
2022-05-29 17:03:03 +00:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
<artifactId>ratis-server</artifactId>
|
|
|
|
<version>${ratis.version}</version>
|
2022-06-01 10:43:01 +00:00
|
|
|
</dependency>
|
|
|
|
|
2022-05-29 17:03:03 +00:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ratis</groupId>
|
|
|
|
<artifactId>ratis-proto</artifactId>
|
|
|
|
<version>${ratis.version}</version>
|
2022-05-22 17:40:43 +00:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2022-06-01 10:43:01 +00:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
<version>${spring.boot.web}</version>
|
2022-05-22 17:40:43 +00:00
|
|
|
</dependency>
|
|
|
|
|
2022-06-01 10:43:01 +00:00
|
|
|
|
|
|
|
<!-- protobuf 依赖 -->
|
|
|
|
|
2022-05-22 17:40:43 +00:00
|
|
|
|
|
|
|
<dependency>
|
2022-05-17 16:56:52 +00:00
|
|
|
<groupId>javax.annotation</groupId>
|
|
|
|
<artifactId>javax.annotation-api</artifactId>
|
2022-05-22 17:40:43 +00:00
|
|
|
<version>${javax.annotation.version}</version>
|
2022-05-17 16:56:52 +00:00
|
|
|
</dependency>
|
|
|
|
|
2022-06-01 10:43:01 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<version>${gson.version}</version>
|
|
|
|
</dependency>
|
2022-05-22 17:40:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加grpc相关依赖包 -->
|
2022-06-01 10:43:01 +00:00
|
|
|
<!-- <dependency>
|
2022-05-17 16:56:52 +00:00
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-netty</artifactId>
|
2022-05-22 17:40:43 +00:00
|
|
|
<version>${grpc.version}</version>
|
2022-05-17 16:56:52 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-protobuf</artifactId>
|
2022-05-22 17:40:43 +00:00
|
|
|
<version>${grpc.version}</version>
|
2022-05-17 16:56:52 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-stub</artifactId>
|
2022-05-22 17:40:43 +00:00
|
|
|
<version>${grpc.version}</version>
|
2022-05-17 16:56:52 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-05-22 17:40:43 +00:00
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-all</artifactId>
|
|
|
|
<version>${grpc.version}</version>
|
2022-06-01 10:43:01 +00:00
|
|
|
</dependency> -->
|
2022-05-22 17:40:43 +00:00
|
|
|
|
|
|
|
<!-- proto自动生成java文件所需的编译插件 -->
|
|
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
2022-05-17 16:56:52 +00:00
|
|
|
<extensions>
|
|
|
|
<extension>
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
|
|
<version>1.7.0</version>
|
|
|
|
</extension>
|
|
|
|
</extensions>
|
|
|
|
|
|
|
|
<plugins>
|
2022-05-22 17:40:43 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
|
|
<version>1.6.2</version>
|
|
|
|
</plugin>
|
2022-05-17 16:56:52 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
<version>0.6.1</version>
|
2022-05-22 17:40:43 +00:00
|
|
|
<configuration>
|
2022-06-01 10:43:01 +00:00
|
|
|
|
2022-05-17 16:56:52 +00:00
|
|
|
<pluginId>grpc-java</pluginId>
|
2022-05-22 17:40:43 +00:00
|
|
|
<protocArtifact>com.google.protobuf:protoc:3.13.0:exe:${os.detected.classifier}</protocArtifact>
|
2022-05-17 16:56:52 +00:00
|
|
|
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.46.0:exe:${os.detected.classifier}</pluginArtifact>
|
2022-06-01 10:43:01 +00:00
|
|
|
|
2022-05-17 16:56:52 +00:00
|
|
|
</configuration>
|
2022-05-29 17:03:03 +00:00
|
|
|
<!-- <executions>
|
2022-05-17 16:56:52 +00:00
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
<goal>compile-custom</goal>
|
2022-05-22 17:40:43 +00:00
|
|
|
<goal>test-compile</goal>
|
|
|
|
<goal>test-compile-custom</goal>
|
2022-05-17 16:56:52 +00:00
|
|
|
</goals>
|
|
|
|
</execution>
|
2022-05-29 17:03:03 +00:00
|
|
|
</executions> -->
|
2022-05-17 16:56:52 +00:00
|
|
|
</plugin>
|
2022-06-01 10:43:01 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>repackage</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
</plugin>
|
2022-05-17 16:56:52 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2022-05-22 17:40:43 +00:00
|
|
|
</project>
|