Correct protocol root pom reference due to merge conflict
[incubator-drill.git] / protocol / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements.  See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License.  You may obtain a copy of the License at
9
10      http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18 <project
19   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
20   xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
21   <modelVersion>4.0.0</modelVersion>
22
23   <parent>
24     <artifactId>drill-root</artifactId>
25     <groupId>org.apache.drill</groupId>
26     <version>1.0.0-m2-incubating-SNAPSHOT</version>
27   </parent>
28
29   <artifactId>drill-protocol</artifactId>
30   <packaging>jar</packaging>
31   <name>Drill Protocol</name>
32
33   <dependencies>
34     <dependency>
35       <groupId>com.google.protobuf</groupId>
36       <artifactId>protobuf-java</artifactId>
37       <version>2.5.0</version>
38     </dependency>
39   </dependencies>
40
41   <profiles>
42     <profile>
43       <id>proto-compile</id>
44       <activation>
45         <activeByDefault>false</activeByDefault>
46       </activation>
47       <build>
48         <plugins>
49           <plugin>
50             <groupId>com.github.igor-petruk.protobuf</groupId>
51             <artifactId>protobuf-maven-plugin</artifactId>
52             <version>0.6.3</version>
53             <executions>
54               <execution>
55                 <goals>
56                   <goal>run</goal>
57                 </goals>
58                 <configuration>
59                   <outputDirectory>${basedir}/src/main/java</outputDirectory>
60                 </configuration>
61               </execution>
62             </executions>
63           </plugin>
64           <plugin>
65             <groupId>com.mycila</groupId>
66             <artifactId>license-maven-plugin</artifactId>
67             <version>2.3</version>
68             <configuration>
69               <header>${basedir}/../header</header>
70               <includes>
71                 <include>**/*.java</include>
72               </includes>
73             </configuration>
74             <executions>
75               <execution>
76                 <phase>process-sources</phase>
77                 <goals>
78                   <goal>format</goal>
79                 </goals>
80               </execution>
81             </executions>
82           </plugin>
83         </plugins>
84       </build>
85     </profile>
86   </profiles>
87
88   <build>
89     <plugins>    
90       <plugin>
91         <groupId>org.apache.maven.plugins</groupId>
92         <artifactId>maven-shade-plugin</artifactId>
93         <version>2.1</version>
94         <executions>
95           <execution>
96             <phase>package</phase>
97             <goals>
98               <goal>shade</goal>
99             </goals>
100             <configuration>
101               <artifactSet>
102                 <includes>
103                   <include>com.google.protobuf:protobuf-java</include>                     
104                 </includes>                 
105               </artifactSet>
106               <shadedArtifactAttached>true</shadedArtifactAttached>
107               <shadedClassifierName>rebuffed</shadedClassifierName>
108
109               <relocations>
110                 <relocation>
111                   <pattern>com.google.protobuf</pattern>
112                   <shadedPattern>250.com.google.protobuf</shadedPattern>
113                 </relocation>
114               </relocations>
115             </configuration>
116           </execution>
117         </executions>
118       </plugin>
119     </plugins>
120
121   </build>
122 </project>