|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +Licensed to the Apache Software Foundation (ASF) under one |
| 4 | +or more contributor license agreements. See the NOTICE file |
| 5 | +distributed with this work for additional information |
| 6 | +regarding copyright ownership. The ASF licenses this file |
| 7 | +to you under the Apache License, Version 2.0 (the |
| 8 | +"License"); you may not use this file except in compliance |
| 9 | +with the License. You may obtain a copy of the License at |
| 10 | +
|
| 11 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +
|
| 13 | +Unless required by applicable law or agreed to in writing, |
| 14 | +software distributed under the License is distributed on an |
| 15 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +KIND, either express or implied. See the License for the |
| 17 | +specific language governing permissions and limitations |
| 18 | +under the License. |
| 19 | +--> |
| 20 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 21 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | + <parent> |
| 24 | + <artifactId>be-java-extensions</artifactId> |
| 25 | + <groupId>org.apache.doris</groupId> |
| 26 | + <version>${revision}</version> |
| 27 | + </parent> |
| 28 | + <modelVersion>4.0.0</modelVersion> |
| 29 | + |
| 30 | + <artifactId>paimon-common-patch</artifactId> |
| 31 | + <name>Doris BE paimon common patch</name> |
| 32 | + <description> |
| 33 | + Doris's copy of org.apache.paimon.utils.FatalExitExceptionHandler, the handler paimon gives |
| 34 | + its pool threads, which ends the process when one of them dies (the class header says why). |
| 35 | + Not a plugin: the paimon plugin declares this artifact, so its jar lands in the plugin |
| 36 | + directory, and the jar's Doris-Shadows-Classes manifest entry is what makes PluginRuntime |
| 37 | + search it ahead of paimon-common's copy and of the one paimon-hive-connector bundles. |
| 38 | + |
| 39 | + A module of its own, not a second jar built by paimon-scanner, because of the Maven build |
| 40 | + cache: a cache hit restores a module's own jar and nothing else, while copy-dependencies, |
| 41 | + forced to run on a hit (fe/.mvn/maven-build-cache-config.xml), copies the jars of the |
| 42 | + modules a plugin depends on. A second jar that paimon-scanner wrote into its own target/lib |
| 43 | + was missing from every cache-restored build, and the plugin deployed without it. The |
| 44 | + layout check (tools/be-java-plugins/check_plugin_layout.py) requires a shadowing jar to |
| 45 | + hold nothing but the classes it names, which is all this module builds. |
| 46 | + </description> |
| 47 | + |
| 48 | + <properties> |
| 49 | + <maven.compiler.source>8</maven.compiler.source> |
| 50 | + <maven.compiler.target>8</maven.compiler.target> |
| 51 | + </properties> |
| 52 | + |
| 53 | + <dependencies> |
| 54 | + <!-- The artifact this class replaces, provided by the plugin that deploys it. --> |
| 55 | + <dependency> |
| 56 | + <groupId>org.apache.paimon</groupId> |
| 57 | + <artifactId>paimon-common</artifactId> |
| 58 | + <scope>provided</scope> |
| 59 | + </dependency> |
| 60 | + </dependencies> |
| 61 | + |
| 62 | + <build> |
| 63 | + <plugins> |
| 64 | + <plugin> |
| 65 | + <groupId>org.apache.maven.plugins</groupId> |
| 66 | + <artifactId>maven-jar-plugin</artifactId> |
| 67 | + <configuration> |
| 68 | + <archive> |
| 69 | + <!-- Merged with the parent's Doris-Jni-Plugin-Api-Version entry, not replacing it. --> |
| 70 | + <manifestEntries> |
| 71 | + <Doris-Shadows-Classes>org.apache.paimon.utils.FatalExitExceptionHandler</Doris-Shadows-Classes> |
| 72 | + </manifestEntries> |
| 73 | + </archive> |
| 74 | + </configuration> |
| 75 | + </plugin> |
| 76 | + </plugins> |
| 77 | + </build> |
| 78 | +</project> |
0 commit comments