| <?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 |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>drill-root</artifactId> |
| <groupId>org.apache.drill</groupId> |
| <version>0.8.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>drill-protocol</artifactId> |
| <packaging>jar</packaging> |
| <name>Drill Protocol</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>2.6.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.dyuproject.protostuff</groupId> |
| <artifactId>protostuff-core</artifactId> |
| <version>1.0.8</version> |
| </dependency> |
| <dependency> |
| <groupId>com.dyuproject.protostuff</groupId> |
| <artifactId>protostuff-json</artifactId> |
| <version>1.0.8</version> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>proto-compile</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.dyuproject.protostuff</groupId> |
| <artifactId>protostuff-maven-plugin</artifactId> |
| <version>1.0.8</version> |
| <configuration> |
| <protoModules> |
| <protoModule> |
| <source>src/main/protobuf/</source> |
| <outputDir>src/main/java</outputDir> |
| <output>java_v2protoc_schema</output> |
| <encoding>UTF-8</encoding> |
| <options> |
| <property> |
| <name>generate_field_map</name> |
| </property> |
| </options> |
| </protoModule> |
| <protoModule> |
| <source>src/main/protobuf/</source> |
| <outputDir>src/main/java</outputDir> |
| <output>java_bean</output> |
| <encoding>UTF-8</encoding> |
| <options> |
| <property> |
| <name>generate_field_map</name> |
| </property> |
| <property> |
| <name>org.apache.drill.exec.proto</name> |
| <value>org.apache.drill.exec.proto.beans</value> |
| </property> |
| <property> |
| <name>primitive_numbers_if_optional</name> |
| </property> |
| <property> |
| <name>builder_pattern</name> |
| </property> |
| </options> |
| </protoModule> |
| </protoModules> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.github.igor-petruk.protobuf</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>0.6.3</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <cleanOutputFolder>false</cleanOutputFolder> |
| <outputDirectory>${basedir}/src/main/java</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.mycila</groupId> |
| <artifactId>license-maven-plugin</artifactId> |
| <version>2.3</version> |
| <configuration> |
| <header>${basedir}/../header</header> |
| <includes> |
| <include>**/*.java</include> |
| </includes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>process-sources</phase> |
| <goals> |
| <goal>format</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.1</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <artifactSet> |
| <includes> |
| <include>com.google.protobuf:protobuf-java</include> |
| </includes> |
| </artifactSet> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>rebuffed</shadedClassifierName> |
| |
| <relocations> |
| <relocation> |
| <pattern>com.google.protobuf</pattern> |
| <shadedPattern>250.com.google.protobuf</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| </build> |
| </project> |