|
| 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, software |
| 14 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | + ~ See the License for the specific language governing permissions and |
| 17 | + ~ limitations under the License. |
| 18 | + --> |
| 19 | +<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 20 | + <modelVersion>4.0.0</modelVersion> |
| 21 | + |
| 22 | + <parent> |
| 23 | + <groupId>org.apache.atlas</groupId> |
| 24 | + <artifactId>apache-atlas</artifactId> |
| 25 | + <version>2.5.0-SNAPSHOT</version> |
| 26 | + </parent> |
| 27 | + |
| 28 | + <artifactId>hbase-shaded-client-fixed</artifactId> |
| 29 | + <packaging>jar</packaging> |
| 30 | + |
| 31 | + <name>HBase shaded client with fix</name> |
| 32 | + <description>HBase shaded client with fix to remove 2 entries in META-INF/services</description> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <checkstyle.failOnViolation>true</checkstyle.failOnViolation> |
| 36 | + <checkstyle.skip>false</checkstyle.skip> |
| 37 | + </properties> |
| 38 | + |
| 39 | + <dependencies> |
| 40 | + <dependency> |
| 41 | + <groupId>org.apache.hbase</groupId> |
| 42 | + <artifactId>hbase-shaded-client</artifactId> |
| 43 | + <version>${hbase.version}-hadoop3</version> |
| 44 | + <scope>provided</scope> |
| 45 | + </dependency> |
| 46 | + </dependencies> |
| 47 | + |
| 48 | + <build> |
| 49 | + <plugins> |
| 50 | + <!-- Unpack hbase-shaded-client jar, skipping 2 entries in META-INF/services --> |
| 51 | + <plugin> |
| 52 | + <groupId>org.apache.maven.plugins</groupId> |
| 53 | + <artifactId>maven-dependency-plugin</artifactId> |
| 54 | + <executions> |
| 55 | + <execution> |
| 56 | + <id>unpack-hbase-shaded-client</id> |
| 57 | + <goals> |
| 58 | + <goal>unpack</goal> |
| 59 | + </goals> |
| 60 | + <phase>process-resources</phase> |
| 61 | + <configuration> |
| 62 | + <artifactItems> |
| 63 | + <artifactItem> |
| 64 | + <groupId>org.apache.hbase</groupId> |
| 65 | + <artifactId>hbase-shaded-client</artifactId> |
| 66 | + <version>${hbase.version}-hadoop3</version> |
| 67 | + <excludes>META-INF/services/javax.ws.rs.ext.MessageBodyWriter,META-INF/services/javax.ws.rs.ext.MessageBodyReader</excludes> |
| 68 | + <outputDirectory>${project.build.directory}/unpacked</outputDirectory> |
| 69 | + </artifactItem> |
| 70 | + </artifactItems> |
| 71 | + </configuration> |
| 72 | + </execution> |
| 73 | + </executions> |
| 74 | + </plugin> |
| 75 | + |
| 76 | + <!-- Repack the jar --> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-jar-plugin</artifactId> |
| 80 | + <version>2.4</version> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <id>default-jar</id> |
| 84 | + <phase>none</phase> |
| 85 | + </execution> |
| 86 | + <execution> |
| 87 | + <id>repack-fixed-hbase-shaded-client</id> |
| 88 | + <goals> |
| 89 | + <goal>jar</goal> |
| 90 | + </goals> |
| 91 | + <phase>package</phase> |
| 92 | + <configuration> |
| 93 | + <classesDirectory>${project.build.directory}/unpacked</classesDirectory> |
| 94 | + <finalName>hbase-shaded-client-${hbase.version}-hadoop3-fixed</finalName> |
| 95 | + </configuration> |
| 96 | + </execution> |
| 97 | + </executions> |
| 98 | + </plugin> |
| 99 | + </plugins> |
| 100 | + </build> |
| 101 | +</project> |
0 commit comments