| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica-parent</artifactId> |
| <version>1.15.0</version> |
| </parent> |
| |
| <artifactId>avatica-tck</artifactId> |
| <packaging>jar</packaging> |
| <name>Apache Calcite Avatica Compatibility Kit</name> |
| <description>Library for testing compatibility of Avatica across versions.</description> |
| |
| <properties> |
| <top.dir>${project.basedir}/..</top.dir> |
| </properties> |
| |
| <dependencies> |
| <!-- Sorted by groupId, artifactId; avatica dependencies first. Put versions |
| in dependencyManagement in the root POM, not here. --> |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| </dependency> |
| <!-- As long as we want to run compatibility checks again 1.6.0, we have to include these because |
| they weren't yet provided by the avatica client jar --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- Parent module has the same plugin and does the work of |
| generating -sources.jar for each project. But without the |
| plugin declared here, IDEs don't know the sources are |
| available. --> |
| <plugin> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>jar-no-fork</goal> |
| <goal>test-jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- Create a standalone JAR capable of running the server --> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <artifactSet> |
| <excludes> |
| <exclude>com.google.protobuf:protobuf-java</exclude> |
| <exclude>org.apache.httpcomponents:*</exclude> |
| <exclude>commons-codec:commons-codec</exclude> |
| </excludes> |
| </artifactSet> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <relocations> |
| <relocation> |
| <pattern>com.beust</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.beust</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.fasterxml</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.google.common</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.com.google.common</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>javax.servlet</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.javax.servlet</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>junit</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.junit</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>net.hydromatic</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.net.hydromatic</shadedPattern> |
| </relocation> |
| <!-- We bundle a log4j.properties file which will be looking in this relocated location --> |
| <relocation> |
| <pattern>org.apache.log4j</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.apache.log4j</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.eclipse.jetty</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.eclipse.jetty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.hamcrest</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.hamcrest</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.hsqldb</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.hsqldb</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.junit</pattern> |
| <shadedPattern>org.apache.calcite.avatica.tck.shaded.org.junit</shadedPattern> |
| </relocation> |
| <!-- Intentionally not shading slf4j as it would break --> |
| </relocations> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> |
| <addHeader>false</addHeader> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| <resources> |
| <resource>LICENSE.txt</resource> |
| </resources> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>analyze</id> |
| <goals> |
| <goal>analyze-only</goal> |
| </goals> |
| <configuration> |
| <failOnWarning>true</failOnWarning> |
| <!-- ignore "unused but declared" warnings --> |
| <ignoredUnusedDeclaredDependencies> |
| <ignoredUnusedDeclaredDependency>org.hamcrest:hamcrest-core</ignoredUnusedDeclaredDependency> |
| <ignoredUnusedDeclaredDependency>org.hsqldb:hsqldb</ignoredUnusedDeclaredDependency> |
| <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-log4j12</ignoredUnusedDeclaredDependency> |
| <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-api</ignoredUnusedDeclaredDependency> |
| </ignoredUnusedDeclaredDependencies> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |