| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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> |
| <groupId>org.apache</groupId> |
| <artifactId>apache</artifactId> |
| <version>18</version> |
| </parent> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.apache.rocketmq</groupId> |
| <artifactId>rocketmq-proto</artifactId> |
| <version>2.0.2</version> |
| |
| <properties> |
| <maven.compiler.release>8</maven.compiler.release> |
| |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| |
| <grpc.version>1.47.0</grpc.version> |
| <protobuf.version>3.21.1</protobuf.version> |
| <annotation-api.version>6.0.53</annotation-api.version> |
| |
| <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| <protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version> |
| <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> |
| <os-maven-plugin.version>1.6.2</os-maven-plugin.version> |
| </properties> |
| |
| <dependencies> |
| <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>io.grpc</groupId> |
| <artifactId>grpc-netty-shaded</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| |
| <!-- For jdk11 --> |
| <dependency> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>annotations-api</artifactId> |
| <version>${annotation-api.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <distributionManagement> |
| <snapshotRepository> |
| <id>apache.snapshots.https</id> |
| <url>https://repository.apache.org/content/repositories/snapshots</url> |
| </snapshotRepository> |
| <repository> |
| <id>apache.staging.https</id> |
| <url>https://repository.apache.org/service/local/staging/deploy/maven2/</url> |
| </repository> |
| </distributionManagement> |
| |
| <profiles> |
| <profile> |
| <id>protoc-gen</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>${protobuf-maven-plugin.version}</version> |
| <configuration> |
| <protocArtifact> |
| com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} |
| </protocArtifact> |
| <pluginId>grpc-java</pluginId> |
| <pluginArtifact> |
| io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier} |
| </pluginArtifact> |
| <protoSourceRoot>${basedir}/src/main/resources/proto</protoSourceRoot> |
| <outputDirectory>${basedir}/src/main/java</outputDirectory> |
| <clearOutputDirectory>false</clearOutputDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| <goal>compile-custom</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <build> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>${os-maven-plugin.version}</version> |
| </extension> |
| </extensions> |
| </build> |
| |
| <scm> |
| <url>git@github.com:apache/rocketmq-apis.git</url> |
| <connection>scm:git:git@github.com:apache/rocketmq-apis.git</connection> |
| <developerConnection>scm:git:git@github.com:apache/rocketmq-apis.git</developerConnection> |
| <tag>rocketmq-proto-2.0.2</tag> |
| </scm> |
| </project> |