| <?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.distributedlog</groupId> |
| <artifactId>distributedlog</artifactId> |
| <version>0.5.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>distributedlog-core</artifactId> |
| <name>Apache DistributedLog :: Core Library</name> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.distributedlog</groupId> |
| <artifactId>distributedlog-common</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.distributedlog</groupId> |
| <artifactId>distributedlog-protocol</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| <version>${zookeeper.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>0.9.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-server</artifactId> |
| <version>${bookkeeper.version}</version> |
| <type>jar</type> |
| <exclusions> |
| <exclusion> |
| <groupId>org.jboss.netty</groupId> |
| <artifactId>netty</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <version>${lombok.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock</artifactId> |
| <version>${jmock.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>${slf4j.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.distributedlog</groupId> |
| <artifactId>distributedlog-common</artifactId> |
| <version>${project.parent.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${maven-jar-plugin.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${maven-surefire-plugin.version}</version> |
| <configuration> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G</argLine> |
| <forkMode>always</forkMode> |
| <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds> |
| <properties> |
| <property> |
| <name>listener</name> |
| <value>org.apache.distributedlog.common.util.TimedOutTestsListener</value> |
| </property> |
| </properties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>findbugs-maven-plugin</artifactId> |
| <configuration> |
| <excludeFilterFile>${basedir}/src/main/resources/findbugsExclude.xml</excludeFilterFile> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${maven-shade-plugin.version}</version> |
| <configuration> |
| <!-- put your configurations here --> |
| </configuration> |
| <executions> |
| <execution> |
| <id>shade-thrift</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <artifactSet> |
| <includes> |
| <include>org.apache.thrift:libthrift</include> |
| </includes> |
| </artifactSet> |
| <minimizeJar>true</minimizeJar> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>dlshade.org.apache.thrift</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| <execution> |
| <id>shade-all</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>shaded</shadedClassifierName> |
| <minimizeJar>true</minimizeJar> |
| <artifactSet> |
| <includes> |
| |
| <include>commons-beanutils:commons-beanutils</include> |
| <include>commons-beanutils:commons-beanutils-core</include> |
| <include>commons-codec:commons-codec</include> |
| <include>commons-cli:commons-cli</include> |
| <include>commons-configuration:commons-configuration</include> |
| <include>commons-collections:commons-collections</include> |
| <include>commons-digester:commons-digester</include> |
| <include>commons-io:commons-io</include> |
| <include>commons-lang:commons-lang</include> |
| <include>commons-logging:commons-logging</include> |
| <include>com.google.guava:guava</include> |
| <include>io.netty:netty</include> |
| <include>io.netty:netty-all</include> |
| <include>io.netty:netty-buffer</include> |
| <include>io.netty:netty-common</include> |
| <include>io.netty:netty-tcnative-boringssl-static</include> |
| <include>net.java.dev.jna:jna</include> |
| <include>net.jpountz.lz4:lz4</include> |
| <include>org.apache.bookkeeper.stats:bookkeeper-stats-api</include> |
| <include>org.apache.bookkeeper:bookkeeper-server</include> |
| <include>org.apache.commons:commons-lang3</include> |
| <include>org.apache.distributedlog:distributedlog-common</include> |
| <include>org.apache.distributedlog:distributedlog-protocol</include> |
| <include>org.apache.httpcomponents:httpclient</include> |
| <include>org.apache.httpcomponents:httpcore</include> |
| <include>org.apache.thrift:libthrift</include> |
| <include>org.apache.zookeeper:zookeeper</include> |
| <include>org.inferred:freebuilder</include> |
| </includes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>net.jpountz.lz4:lz4</artifact> |
| <includes> |
| <include>**</include> |
| </includes> |
| </filter> |
| </filters> |
| <relocations> |
| <!-- apache commons --> |
| <relocation> |
| <pattern>org.apache.commons</pattern> |
| <shadedPattern>dlshade.org.apache.commons</shadedPattern> |
| </relocation> |
| <!-- apache httpcomponents --> |
| <relocation> |
| <pattern>org.apache.httpcomponents</pattern> |
| <shadedPattern>dlshade.org.apache.httpcomponents</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.http</pattern> |
| <shadedPattern>dlshade.org.apache.http</shadedPattern> |
| </relocation> |
| <!-- apache thrift --> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>dlshade.org.apache.thrift</shadedPattern> |
| </relocation> |
| <!-- apache zookeeper --> |
| <relocation> |
| <pattern>org.apache.zookeeper</pattern> |
| <shadedPattern>dlshade.org.apache.zookeeper</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.jute</pattern> |
| <shadedPattern>dlshade.org.apache.jute</shadedPattern> |
| </relocation> |
| <!-- freebuilder --> |
| <relocation> |
| <pattern>org.inferred.freebuilder</pattern> |
| <shadedPattern>dlshade.org.inferred.freebuilder</shadedPattern> |
| </relocation> |
| <!-- jna --> |
| <relocation> |
| <pattern>com.sun.jna</pattern> |
| <shadedPattern>dlshade.com.sun.jna</shadedPattern> |
| </relocation> |
| <!-- guava --> |
| <relocation> |
| <pattern>com.google</pattern> |
| <shadedPattern>dlshade.com.google</shadedPattern> |
| </relocation> |
| <!-- netty --> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>dlshade.io.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.jboss.netty</pattern> |
| <shadedPattern>dlshade.org.jboss.netty</shadedPattern> |
| </relocation> |
| <!-- lz4 --> |
| <relocation> |
| <pattern>net.jpountz</pattern> |
| <shadedPattern>dlshade.net.jpountz</shadedPattern> |
| </relocation> |
| <!-- bookkeeper --> |
| <relocation> |
| <pattern>org.apache.bookkeeper</pattern> |
| <shadedPattern>org.apache.bookkeeper</shadedPattern> |
| </relocation> |
| <!-- distributedlog --> |
| <relocation> |
| <pattern>org.apache.distributedlog</pattern> |
| <shadedPattern>org.apache.distributedlog</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>twitter-ostrich-provider</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.bookkeeper.stats</groupId> |
| <artifactId>twitter-ostrich-provider</artifactId> |
| <version>${bookkeeper.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |