|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | + <artifactId>sentiment-service</artifactId> |
| 7 | + <name>sentiment-service</name> |
| 8 | + <description>This is the main service of the system, that uses Apache Camel to integrate with Triton server and |
| 9 | + use an AI model for inference |
| 10 | + </description> |
6 | 11 |
|
7 | 12 | <parent> |
8 | 13 | <groupId>com.baeldung</groupId> |
9 | | - <artifactId>sentiment-parent-pom</artifactId> |
| 14 | + <artifactId>apache-camel-kserve</artifactId> |
10 | 15 | <version>0.0.1-SNAPSHOT</version> |
11 | 16 | </parent> |
12 | 17 |
|
13 | | - <name>Sentiment System - Service</name> |
14 | | - <description>This is the main service of the system, that uses Apache Camel to integrate with Triton server and |
15 | | - use an AI model for inference</description> |
16 | | - <artifactId>sentiment-service</artifactId> |
17 | | - |
18 | | - <properties> |
19 | | - <java.version>21</java.version> |
20 | | - <maven.compiler.source>${java.version}</maven.compiler.source> |
21 | | - <maven.compiler.release>${java.version}</maven.compiler.release> |
22 | | - <maven.compiler.target>${java.version}</maven.compiler.target> |
23 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
24 | | - |
25 | | - <camel.version>4.13.0</camel.version> |
26 | | - <jackson-databind.version>2.19.2</jackson-databind.version> |
27 | | - <tokenizers.version>0.21.0</tokenizers.version> |
28 | | - <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
29 | | - </properties> |
30 | | - |
31 | 18 | <dependencies> |
32 | 19 | <!-- Core Camel --> |
33 | 20 | <dependency> |
34 | 21 | <groupId>org.apache.camel</groupId> |
35 | 22 | <artifactId>camel-main</artifactId> |
36 | 23 | <version>${camel.version}</version> |
37 | 24 | </dependency> |
38 | | - |
39 | 25 | <!-- REST support via Undertow --> |
40 | 26 | <dependency> |
41 | 27 | <groupId>org.apache.camel</groupId> |
|
47 | 33 | <artifactId>camel-rest</artifactId> |
48 | 34 | <version>${camel.version}</version> |
49 | 35 | </dependency> |
50 | | - |
51 | 36 | <!-- KServe inference component --> |
52 | 37 | <dependency> |
53 | 38 | <groupId>org.apache.camel</groupId> |
54 | 39 | <artifactId>camel-kserve</artifactId> |
55 | 40 | <version>${camel.version}</version> |
56 | 41 | </dependency> |
57 | | - |
58 | 42 | <!-- JSON support --> |
59 | 43 | <dependency> |
60 | 44 | <groupId>com.fasterxml.jackson.core</groupId> |
61 | 45 | <artifactId>jackson-databind</artifactId> |
62 | 46 | <version>${jackson-databind.version}</version> |
63 | 47 | </dependency> |
64 | | - |
65 | 48 | <!-- lib to use for tokenizer --> |
66 | 49 | <dependency> |
67 | 50 | <groupId>ai.djl.huggingface</groupId> |
|
91 | 74 | <executions> |
92 | 75 | <execution> |
93 | 76 | <phase>package</phase> |
94 | | - <goals><goal>shade</goal></goals> |
| 77 | + <goals> |
| 78 | + <goal>shade</goal> |
| 79 | + </goals> |
95 | 80 | <configuration> |
96 | 81 | <transformers> |
97 | 82 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
|
105 | 90 | </plugin> |
106 | 91 | </plugins> |
107 | 92 | </build> |
| 93 | + |
| 94 | + <properties> |
| 95 | + <java.version>21</java.version> |
| 96 | + <maven.compiler.source>${java.version}</maven.compiler.source> |
| 97 | + <maven.compiler.release>${java.version}</maven.compiler.release> |
| 98 | + <maven.compiler.target>${java.version}</maven.compiler.target> |
| 99 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 100 | + |
| 101 | + <camel.version>4.13.0</camel.version> |
| 102 | + <jackson-databind.version>2.19.2</jackson-databind.version> |
| 103 | + <tokenizers.version>0.21.0</tokenizers.version> |
| 104 | + <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
| 105 | + </properties> |
| 106 | + |
108 | 107 | </project> |
0 commit comments