|
@@ -82,6 +82,10 @@
|
|
<protobuf.version>2.5.0</protobuf.version>
|
|
<protobuf.version>2.5.0</protobuf.version>
|
|
<protoc.path>${env.HADOOP_PROTOC_PATH}</protoc.path>
|
|
<protoc.path>${env.HADOOP_PROTOC_PATH}</protoc.path>
|
|
|
|
|
|
|
|
+ <!-- Maven protoc compiler -->
|
|
|
|
+ <protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>
|
|
|
|
+ <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
|
|
|
|
+
|
|
<zookeeper.version>3.4.13</zookeeper.version>
|
|
<zookeeper.version>3.4.13</zookeeper.version>
|
|
<curator.version>2.13.0</curator.version>
|
|
<curator.version>2.13.0</curator.version>
|
|
<findbugs.version>3.0.0</findbugs.version>
|
|
<findbugs.version>3.0.0</findbugs.version>
|
|
@@ -1529,9 +1533,56 @@
|
|
<artifactId>hadoop-maven-plugins</artifactId>
|
|
<artifactId>hadoop-maven-plugins</artifactId>
|
|
<version>${project.version}</version>
|
|
<version>${project.version}</version>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
+ <artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
+ <version>${protobuf-maven-plugin.version}</version>
|
|
|
|
+ <extensions>true</extensions>
|
|
|
|
+ <configuration>
|
|
|
|
+ <protocArtifact>
|
|
|
|
+ com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
|
|
|
|
+ </protocArtifact>
|
|
|
|
+ <attachProtoSources>false</attachProtoSources>
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>src-compile-protoc</id>
|
|
|
|
+ <phase>generate-sources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>compile</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
|
|
|
|
+ <protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
|
|
|
|
+ <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
|
|
|
|
+ <clearOutputDirectory>false</clearOutputDirectory>
|
|
|
|
+ <skip>true</skip>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>src-test-compile-protoc</id>
|
|
|
|
+ <phase>generate-test-sources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>test-compile</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
|
|
|
|
+ <outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
|
|
|
|
+ <clearOutputDirectory>false</clearOutputDirectory>
|
|
|
|
+ <skip>true</skip>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
</plugins>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</pluginManagement>
|
|
-
|
|
|
|
|
|
+ <extensions>
|
|
|
|
+ <extension>
|
|
|
|
+ <groupId>kr.motd.maven</groupId>
|
|
|
|
+ <artifactId>os-maven-plugin</artifactId>
|
|
|
|
+ <version>${os-maven-plugin.version}</version>
|
|
|
|
+ </extension>
|
|
|
|
+ </extensions>
|
|
<plugins>
|
|
<plugins>
|
|
<plugin>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|