| <?xml version="1.0"?> |
| <!-- |
| |
| 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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-functions</artifactId> |
| <version>2.3.0</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>pulsar-functions-runtime-all</artifactId> |
| <name>Pulsar Functions :: Runtime All</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-functions-runtime</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| |
| <!-- logging --> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-client-original</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-all</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-all</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <finalName>java-instance</finalName> |
| <minimizeJar>false</minimizeJar> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer" /> |
| </transformers> |
| <artifactSet> |
| <excludes> |
| <exclude>io.netty:netty-common</exclude> |
| <exclude>io.netty:netty-buffer</exclude> |
| <exclude>io.netty:netty-codec-http2</exclude> |
| <exclude>io.netty:netty-codec-http</exclude> |
| <exclude>io.netty:netty-codec-socks</exclude> |
| <exclude>io.netty:netty-codec</exclude> |
| <exclude>io.netty:netty-handler</exclude> |
| <exclude>io.netty:netty-handler-proxy</exclude> |
| <exclude>io.netty:netty-transport</exclude> |
| <exclude>io.netty:netty-resolver</exclude> |
| </excludes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <!-- Shading signed JARs will fail without |
| this. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar --> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <relocations> |
| <relocation> |
| <pattern>com.google</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.com.google</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.io.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.grpc</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.io.grpc</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.bookkeeper</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.squareup</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.com.squareup</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>okio</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.okio</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.inferred</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.inferred</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.jboss</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.jboss</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml.jackson</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.com.fasterxml.jackson</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.beust</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.com.beust</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>net.jodah</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.net.jodah</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.yaml</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.yaml</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.glassfish</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.glassfish</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.yahoo</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.com.yahoo</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.http</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.apache.http</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.commons</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.apache.commons</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.jvnet</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.jvnet</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.opencensus</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.io.opencensus</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.eclipse</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.eclipse</shadedPattern> |
| </relocation> |
| <!-- |
| asynchttpclient can only be shaded to be under `org.apache.pulsar.shade` |
| see {@link https://github.com/apache/incubator-pulsar/pull/390} |
| and {@link https://github.com/apache/incubator-pulsar/blob/master/pulsar-client/src/main/resources/ahc.properties} |
| --> |
| <relocation> |
| <pattern>org.asynchttpclient</pattern> |
| <shadedPattern>org.apache.pulsar.shade.org.asynchttpclient</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.bouncycastle</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.bouncycastle</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>jersey</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.jersey</shadedPattern> |
| </relocation> |
| <!-- DONT ever shade log4j, otherwise logging won't work anymore in running functions in process mode |
| <relocation> |
| <pattern>org.apache.logging</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.org.apache.logging</shadedPattern> |
| </relocation> |
| --> |
| <relocation> |
| <pattern>javassist</pattern> |
| <shadedPattern>org.apache.pulsar.functions.runtime.shaded.javassist</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |