You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.6 KiB
122 lines
4.6 KiB
<?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>escheduler</artifactId> |
|
<groupId>cn.analysys</groupId> |
|
<version>1.0.0</version> |
|
</parent> |
|
<modelVersion>4.0.0</modelVersion> |
|
|
|
<artifactId>escheduler-rpc</artifactId> |
|
|
|
<name>escheduler-rpc</name> |
|
<url>https://github.com/analysys/EasyScheduler</url> |
|
|
|
<properties> |
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
<maven.compiler.source>1.7</maven.compiler.source> |
|
<maven.compiler.target>1.7</maven.compiler.target> |
|
|
|
<protobuf.output.directory>${project.basedir}/src/main/java</protobuf.output.directory> |
|
<protobuf.version>3.5.1</protobuf.version> |
|
<grpc.version>1.9.0</grpc.version> |
|
</properties> |
|
|
|
<dependencies> |
|
<dependency> |
|
<groupId>com.google.protobuf</groupId> |
|
<artifactId>protobuf-java</artifactId> |
|
<version>${protobuf.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>io.grpc</groupId> |
|
<artifactId>grpc-netty</artifactId> |
|
<version>${grpc.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>io.grpc</groupId> |
|
<artifactId>grpc-protobuf</artifactId> |
|
<version>${grpc.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>io.grpc</groupId> |
|
<artifactId>grpc-stub</artifactId> |
|
<version>${grpc.version}</version> |
|
</dependency> |
|
|
|
<dependency> |
|
<groupId>com.google.guava</groupId> |
|
<artifactId>guava</artifactId> |
|
</dependency> |
|
</dependencies> |
|
|
|
<build> |
|
<extensions> |
|
<extension> |
|
<groupId>kr.motd.maven</groupId> |
|
<artifactId>os-maven-plugin</artifactId> |
|
<version>1.5.0.Final</version> |
|
</extension> |
|
</extensions> |
|
<plugins> |
|
<plugin> |
|
<groupId>org.xolstice.maven.plugins</groupId> |
|
<artifactId>protobuf-maven-plugin</artifactId> |
|
<version>0.5.0</version> |
|
<configuration> |
|
<protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact> |
|
<pluginId>grpc-java</pluginId> |
|
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
|
</configuration> |
|
<executions> |
|
<execution> |
|
<id>compile</id> |
|
<goals> |
|
<goal>compile</goal> |
|
</goals> |
|
</execution> |
|
<execution> |
|
<id>compile-custom</id> |
|
<goals> |
|
<goal>compile-custom</goal> |
|
</goals> |
|
<configuration> |
|
<outputDirectory>${protobuf.output.directory}</outputDirectory> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
<!-- add generated proto buffer classes into the package --> |
|
<plugin> |
|
<groupId>org.codehaus.mojo</groupId> |
|
<artifactId>build-helper-maven-plugin</artifactId> |
|
<version>1.7</version> |
|
<executions> |
|
<execution> |
|
<id>add-classes</id> |
|
<phase>generate-sources</phase> |
|
<goals> |
|
<goal>add-source</goal> |
|
</goals> |
|
<configuration> |
|
<sources> |
|
<source>${protobuf.output.directory}</source> |
|
</sources> |
|
</configuration> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-compiler-plugin</artifactId> |
|
<configuration> |
|
<source>${java.version}</source> |
|
<target>${java.version}</target> |
|
<encoding>${project.build.sourceEncoding}</encoding> |
|
</configuration> |
|
</plugin> |
|
</plugins> |
|
</build> |
|
</project>
|
|
|