| <?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"> |
| <parent> |
| <groupId>org.apache.submarine</groupId> |
| <artifactId>submarine-commons</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>submarine-commons-cluster</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| <name>Submarine: Commons Cluster</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.submarine</groupId> |
| <artifactId>submarine-commons-utils</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.atomix</groupId> |
| <artifactId>atomix</artifactId> |
| <version>${atomix.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.atomix</groupId> |
| <artifactId>atomix-raft</artifactId> |
| <version>${atomix.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.atomix</groupId> |
| <artifactId>atomix-primary-backup</artifactId> |
| <version>${atomix.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>${commons-lang3.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| <version>${commons-lang.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-configuration</groupId> |
| <artifactId>commons-configuration</artifactId> |
| <version>${commons-configuration.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </dependency> |
| |
| <!-- Test libraries --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${plugin.shade.version}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <outputFile>target/${project.artifactId}-${project.version}-shade.jar</outputFile> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <artifactSet> |
| <excludes> |
| <exclude>commons-logging:commons-logging</exclude> |
| <exclude>org.slf4j:*</exclude> |
| <exclude>log4j:log4j</exclude> |
| </excludes> |
| </artifactSet> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.submarine.interpreter.AbstractInterpreter</mainClass> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| </transformers> |
| <relocations> |
| <relocation> |
| <pattern>org</pattern> |
| <shadedPattern>${shaded.dependency.prefix}.cluster.org</shadedPattern> |
| <excludes> |
| <exclude>org/apache/submarine/*</exclude> |
| <exclude>org/apache/submarine/**/*</exclude> |
| <exclude>org/apache/thrift/*</exclude> |
| <exclude>org/apache/thrift/**/*</exclude> |
| <exclude>org/slf4j/*</exclude> |
| <exclude>org/slf4j/**/*</exclude> |
| <exclude>org/apache/commons/logging/*</exclude> |
| <exclude>org/apache/commons/logging/**/*</exclude> |
| <exclude>org/apache/commons/exec/*</exclude> |
| <exclude>org/apache/commons/exec/**/*</exclude> |
| <exclude>org/apache/commons/collections/*</exclude> |
| <exclude>org/apache/commons/collections/**/*</exclude> |
| <exclude>org/apache/log4j/*</exclude> |
| <exclude>org/apache/log4j/**/*</exclude> |
| <exclude>org/sonatype/*</exclude> |
| <exclude>org/sonatype/**/*</exclude> |
| <exclude>**/pom.xml</exclude> |
| |
| <!-- Not the org/ packages that are a part of the jdk --> |
| <exclude>org/ietf/jgss/*</exclude> |
| <exclude>org/omg/**/*</exclude> |
| <exclude>org/w3c/dom/*</exclude> |
| <exclude>org/w3c/dom/**/*</exclude> |
| <exclude>org/xml/sax/*</exclude> |
| <exclude>org/xml/sax/**/*</exclude> |
| </excludes> |
| </relocation> |
| <relocation> |
| <pattern>com.google</pattern> |
| <shadedPattern>${shaded.dependency.prefix}.cluster.com.google</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io</pattern> |
| <shadedPattern>${shaded.dependency.prefix}.cluster.io</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware</pattern> |
| <shadedPattern>${shaded.dependency.prefix}.cluster.com.esotericsoftware</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <skip>false</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <configuration> |
| <skip>false</skip> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |