| <?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> |
| <artifactId>storm</artifactId> |
| <groupId>org.apache.storm</groupId> |
| <version>2.6.3-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>storm-sql-core</artifactId> |
| |
| <properties> |
| <!-- |
| +- org.apache.calcite:calcite-core:jar:1.16.0:compile |
| | +- org.apache.calcite.avatica:avatica-core:jar:1.11.0:compile |
| | | \- com.google.protobuf:protobuf-java:jar:3.3.0:compile |
| |
| to fix Illegal reflective access by com.google.protobuf.UnsafeUtil |
| (com.google.protobuf:protobuf-java:3.3.0) to field java.nio.Buffer.address add |
| "add-opens java.base/java.nio=ALL-UNNAMED" |
| --> |
| <storm-sql-core.test.introspection.argLine>--add-opens java.base/java.nio=ALL-UNNAMED</storm-sql-core.test.introspection.argLine> |
| </properties> |
| <developers> |
| <developer> |
| <id>haohui</id> |
| <name>Haohui Mai</name> |
| <email>ricetons@gmail.com</email> |
| </developer> |
| </developers> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>storm-client</artifactId> |
| <version>${project.version}</version> |
| <scope>${provided.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>storm-server</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>storm-sql-runtime</artifactId> |
| <version>${project.version}</version> |
| <scope>${provided.scope}</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>storm-sql-runtime</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.calcite</groupId> |
| <artifactId>calcite-core</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica-metrics</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-dbcp</groupId> |
| <artifactId>commons-dbcp</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.reload4j</groupId> |
| <artifactId>reload4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-reload4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-collections4</artifactId> |
| <version>4.1</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <sourceDirectory>src/jvm</sourceDirectory> |
| <testSourceDirectory>src/test</testSourceDirectory> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-fmpp-resources</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/codegen</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/codegen</directory> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-java-sources</id> |
| <phase>process-sources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/classes/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/jvm</directory> |
| <filtering>true</filtering> |
| </resource> |
| <resource> |
| <directory>src/test</directory> |
| <filtering>true</filtering> |
| </resource> |
| <resource> |
| <directory>target/generated-sources</directory> |
| <!-- <include>*/org</include> --> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.3.0</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <argLine>${storm-sql-core.test.introspection.argLine} -Xmx3g -XX:+HeapDumpOnOutOfMemoryError</argLine> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <excludedGroups>IntegrationTest | ${java.unit.test.exclude.groups}</excludedGroups> |
| <trimStackTrace>false</trimStackTrace> |
| <forkCount>1.0C</forkCount> |
| <reuseForks>true</reuseForks> |
| <systemPropertyVariables> |
| <storm.home>${project.basedir}/target/testhome</storm.home> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <!--Note - the version would be inherited--> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-pmd-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <!-- Extract parser grammar template from calcite-core.jar and put |
| it under ${project.build.directory} where all freemarker templates are. --> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-parser-template</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.calcite</groupId> |
| <artifactId>calcite-core</artifactId> |
| <version>${calcite.version}</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/</outputDirectory> |
| <includes>**/Parser.jj</includes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.googlecode.fmpp-maven-plugin</groupId> |
| <artifactId>fmpp-maven-plugin</artifactId> |
| <version>1.0</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.freemarker</groupId> |
| <artifactId>freemarker</artifactId> |
| <version>2.3.25-incubating</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>generate-fmpp-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <cfgFile>${project.build.directory}/codegen/config.fmpp</cfgFile> |
| <outputDirectory>target/generated-sources</outputDirectory> |
| <templateDirectory>${project.build.directory}/codegen/templates</templateDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.4.0</version> |
| <executions> |
| <execution> |
| <id>add-generated-sources</id> |
| <phase>process-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-sources</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>javacc-maven-plugin</artifactId> |
| <version>3.0.0</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <id>javacc</id> |
| <goals> |
| <goal>javacc</goal> |
| </goals> |
| <configuration> |
| <sourceDirectory>${project.build.directory}/generated-sources/</sourceDirectory> |
| <includes> |
| <include>**/*.jj</include> |
| </includes> |
| <lookAhead>2</lookAhead> |
| <isStatic>false</isStatic> |
| <outputDirectory>${project.build.directory}/generated-sources/</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |