blob: 5ea640a547f09c3e6ea9e9293c55484d7d47e104 [file] [log] [blame]
<?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
https://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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.avro</groupId>
<artifactId>avro-toplevel</artifactId>
<version>1.9.2</version>
<relativePath>../../</relativePath>
</parent>
<artifactId>avro-parent</artifactId>
<packaging>pom</packaging>
<name>Apache Avro Java</name>
<url>https://avro.apache.org</url>
<description>Avro parent Java project</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<main.basedir>${project.parent.basedir}</main.basedir>
<!-- version properties for dependencies -->
<hadoop.version>2.7.7</hadoop.version>
<jackson.version>2.10.2</jackson.version>
<jackson.databind.version>2.10.2</jackson.databind.version>
<servlet-api.version>4.0.1</servlet-api.version>
<jetty.version>9.4.25.v20191220</jetty.version>
<jopt-simple.version>5.0.4</jopt-simple.version>
<junit.version>4.12</junit.version>
<netty.version>3.10.6.Final</netty.version>
<protobuf.version>3.11.1</protobuf.version>
<thrift.version>0.12.0</thrift.version>
<slf4j.version>1.7.25</slf4j.version>
<snappy.version>1.1.7.3</snappy.version>
<velocity.version>2.2</velocity.version>
<maven.version>2.0.11</maven.version>
<ant.version>1.10.5</ant.version>
<commons-cli.version>1.4</commons-cli.version>
<commons-compress.version>1.19</commons-compress.version>
<commons-lang.version>3.9</commons-lang.version>
<tukaani.version>1.8</tukaani.version>
<easymock.version>4.0.2</easymock.version>
<hamcrest.version>2.1</hamcrest.version>
<joda.version>2.10.1</joda.version>
<grpc.version>1.26.0</grpc.version>
<netty-codec-http2.version>4.1.45.Final</netty-codec-http2.version>
<zstd-jni.version>1.4.3-1</zstd-jni.version>
<!-- version properties for plugins -->
<archetype-plugin.version>3.0.1</archetype-plugin.version>
<bundle-plugin-version>4.1.0</bundle-plugin-version>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<exec-plugin.version>1.6.0</exec-plugin.version>
<file-management.version>1.2.1</file-management.version>
<jar-plugin.version>3.1.2</jar-plugin.version>
<javacc-plugin.version>2.6</javacc-plugin.version>
<maven-site-plugin.version>3.7.1</maven-site-plugin.version>
<plugin-plugin.version>3.6.0</plugin-plugin.version>
<plugin-tools-javadoc.version>3.5</plugin-tools-javadoc.version>
<shade-plugin.version>3.2.1</shade-plugin.version>
<source-plugin.version>3.0.1</source-plugin.version>
<surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
</properties>
<modules>
<module>avro</module>
<module>compiler</module>
<module>maven-plugin</module>
<module>ipc</module>
<module>ipc-jetty</module>
<module>ipc-netty</module>
<module>trevni</module>
<module>tools</module>
<module>mapred</module>
<module>protobuf</module>
<module>thrift</module>
<module>archetypes</module>
<module>grpc</module>
<module>integration-test</module>
<module>perf</module>
</modules>
<build>
<!-- defines the default plugin configuration that all child projects inherit from.
Like dependencyManagement, this provides configuration, version, and other
parameters if the plugins are used by child projects -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-parameters</arg>
<!--<arg>-Werror</arg>-->
<arg>-Xlint:all</arg>
<!-- Override options warnings to support cross-compilation -->
<arg>-Xlint:-options</arg>
<!-- Temporary lint overrides, to be removed over time. -->
<arg>-Xlint:-rawtypes</arg>
<arg>-Xlint:-serial</arg>
<arg>-Xlint:-unchecked</arg>
<!--<arg>-Xlint:sunapi</arg>-->
<!--<arg>-XDenableSunApiLintControl</arg>-->
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${jar-plugin.version}</version>
<!--We want to be able to resuse the test-jars for mapred
to test avro-tool
see https://maven.apache.org/guides/mini/guide-attached-tests.html
-->
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>${surefire-plugin.version}</version>
</dependency>
</dependencies>
<configuration>
<includes>
<!-- Avro naming convention for JUnit tests -->
<include>**/Test**</include>
</includes>
<excludes>
<!-- A few innner classes are not to be tested -->
<exclude>**/*$*</exclude>
<!-- exclude the generated classes under apache.avro.test, some of
these match **/Test** and are not JUnit tests -->
<exclude>**/apache/avro/test/**</exclude>
</excludes>
<enableAssertions>false</enableAssertions>
<trimStackTrace>false</trimStackTrace>
<runOrder>random</runOrder>
<parallel>all</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>
<!--<perCoreThreadCount>true</perCoreThreadCount>-->
<!-- TestSpecificCompiler instantiates a Java compiler to test output results,
this does not work with a manifest-only-jar to set the classpath for the javac.
This may cause problems on some platforms.
See https://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html
for more information. -->
<useManifestOnlyJar>false</useManifestOnlyJar>
<!-- configures unit test standard error and standard out to go to a file per test
rather than the console. -->
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<failIfNoTests>false</failIfNoTests>
<argLine>-Xmx1000m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
<link>https://hadoop.apache.org/docs/current/api/</link>
</links>
<tagletArtifacts>
<tagletArtifact>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-javadoc</artifactId>
<version>${plugin-tools-javadoc.version}</version>
</tagletArtifact>
</tagletArtifacts>
<excludePackageNames>org.apache.avro.compiler.idl,*.internal</excludePackageNames>
<quiet>true</quiet>
<encoding>UTF-8</encoding>
<additionalJOption>-Xdoclint:none</additionalJOption>
<detectOfflineLinks>false</detectOfflineLinks>
<notimestamp>true</notimestamp>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${source-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>${javacc-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${plugin-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${shade-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${antrun-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${bundle-plugin-version}</version>
<extensions>true</extensions>
<inherited>true</inherited>
<configuration>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Export-Package>${osgi.export}</Export-Package>
<Import-Package>${osgi.import}</Import-Package>
<DynamicImport-Package>${osgi.dynamic.import}</DynamicImport-Package>
<Private-Package>${osgi.private}</Private-Package>
<Require-Bundle>${osgi.bundles}</Require-Bundle>
<Bundle-Activator>${osgi.activator}</Bundle-Activator>
</instructions>
<supportedProjectTypes>
<supportedProjectType>bundle</supportedProjectType>
</supportedProjectTypes>
<unpackBundle>true</unpackBundle>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-plugin.version}</version>
<configuration>
<consoleOutput>true</consoleOutput>
<configLocation>checkstyle.xml</configLocation>
<suppressionsLocation>suppressions.xml</suppressionsLocation>
</configuration>
<!-- Runs by default in the verify phase (mvn verify or later in the build cycle)
the 'check' goal will fail the build if it does not pass. "mvn checkstyle:check"
will do this alone, or "mvn checkstyle:checkstyle" will report but not break -->
<executions>
<execution>
<id>checkstyle-check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<eclipse>
<!-- Avro uses Sun's java code style conventions with 2 spaces, this is a modified version of
the eclipse formatter -->
<file>${main.basedir}/lang/java/eclipse-java-formatter.xml</file>
<version>4.10.0</version>
</eclipse>
<removeUnusedImports/>
<excludes>
<exclude>src/test/java/org/apache/avro/protobuf/Test.java</exclude>
</excludes>
</java>
</configuration>
<executions>
<execution>
<!-- Runs in compile phase to fail fast in case of formatting issues.-->
<id>spotless-check</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
</reporting>
<profiles>
<profile>
<id>m2e</id>
<activation>
<property><name>m2e.version</name></property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<versionRange>[1.20.0,)</versionRange>
<goals>
<goal>check</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<versionRange>[${plugin-plugin.version},)</versionRange>
<goals>
<goal>helpmojo</goal>
<goal>descriptor</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<versionRange>[$${exec-plugin.version},)</versionRange>
<goals>
<goal>exec</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<versionRange>[${javacc-plugin.version},)</versionRange>
<goals>
<goal>javacc</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<versionRange>[${project.version},)</versionRange>
<goals>
<goal>protocol</goal>
<goal>idl-protocol</goal>
<goal>schema</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>interop-data-test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<includes>
<include>**/DataFileInteropTest*</include>
</includes>
<excludes>
</excludes>
<enableAssertions>false</enableAssertions>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<systemPropertyVariables>
<test.dir>../../../build/interop/data/</test.dir>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<!-- avro-mapred will fail in tests on mac without this -->
<java.security.krb5.realm>OX.AC.UK</java.security.krb5.realm>
<java.security.krb5.kdc>kdc0.ox.ac.uk:kdc1.ox.ac.uk</java.security.krb5.kdc>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>hadoop3</id>
<properties>
<hadoop.version>3.2.1</hadoop.version>
</properties>
</profile>
</profiles>
<!-- dependencyManagement can be used to define dependency versions, scopes, and
excludes to be shared by child projects. Child projects will not inherit these dependencies,
rather they inherit the properties of the below dependencies (such as version) if
the dependency is specified in the child. -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>${velocity.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet-api.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
<version>${jopt-simple.version}</version>
</dependency>
<!-- hadoop's execution environment provides its own jars. -->
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
<exclusions>
<exclusion> <!-- GPL -->
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>${snappy.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${joda.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
<version>${netty-codec-http2.version}</version>
</dependency>
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
<version>${zstd-jni.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- dependencies defines dependencies that all child projects share. Child projects
will inherit these dependencies directly, and can opt out if necessary with <excludes> -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>