| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>camel-ai-parent</artifactId> |
| <groupId>org.apache.camel</groupId> |
| <version>4.15.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-tensorflow-serving</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: AI :: TensorFlow Serving</name> |
| <description> |
| Provide access to TensorFlow Serving model servers to run inference with TensorFlow saved models remotely |
| </description> |
| |
| <properties> |
| <!-- TensorFlow Serving container is not available on these platforms --> |
| <skipITs.s390x>true</skipITs.s390x> |
| </properties> |
| |
| <dependencies> |
| <!-- camel --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| |
| <!-- Dependencies required by the generated client --> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>${protobuf-version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty-shaded</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>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| <version>${jakarta-annotation-api-version}</version> |
| </dependency> |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-junit5</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java-util</artifactId> |
| <version>${protobuf-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- test infra --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-infra-tensorflow-serving</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>io.github.ascopes</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>${protobuf-maven-plugin-version}</version> |
| <configuration> |
| <protocVersion>${protobuf-version}</protocVersion> |
| <sourceDirectories> |
| <sourceDirectory>${project.basedir}/src/main/proto</sourceDirectory> |
| </sourceDirectories> |
| <binaryMavenPlugins> |
| <binaryMavenPlugin> |
| <groupId>io.grpc</groupId> |
| <artifactId>protoc-gen-grpc-java</artifactId> |
| <version>${grpc-version}</version> |
| </binaryMavenPlugin> |
| </binaryMavenPlugins> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/generated-sources/protobuf</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- Remove it once https://github.com/grpc/grpc-java/issues/9179 is resolved --> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>process-sources</phase> |
| <configuration> |
| <target> |
| <replace token="@javax.annotation.Generated" |
| value="@jakarta.annotation.Generated" |
| dir="target/generated-sources/protobuf"> |
| <include name="**/*.java" /> |
| </replace> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |