| <?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>4.7.2</version> |
| </parent> |
| <artifactId>distributedlog-core</artifactId> |
| <name>Apache BookKeeper :: DistributedLog :: Core Library</name> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.distributedlog</groupId> |
| <artifactId>distributedlog-protocol</artifactId> |
| <version>${project.parent.version}</version> |
| <exclusions> |
| <!-- netty-all is introduced by bookkeeper-server --> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-common</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-server</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-common</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <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>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${maven-shade-plugin.version}</version> |
| <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> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <suppressionsLocation>distributedlog/suppressions.xml</suppressionsLocation> |
| <excludes>**/thrift/**/*</excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>license-maven-plugin</artifactId> |
| <version>${license-maven-plugin.version}</version> |
| <configuration> |
| <canUpdateCopyright>false</canUpdateCopyright> |
| <roots> |
| <root>${project.basedir}</root> |
| </roots> |
| </configuration> |
| <executions> |
| <execution> |
| <id>update-pom-license</id> |
| <goals> |
| <goal>update-file-header</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <licenseName>apache_v2</licenseName> |
| <includes> |
| <include>dependency-reduced-pom.xml</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>${maven-clean-plugin.version}</version> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${project.basedir}</directory> |
| <includes> |
| <include>dependency-reduced-pom.xml</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |