HADOOP-16664 Backport "HADOOP-16561 [MAPREDUCE] use protobuf-maven-plugin to generate protobuf classes" to all active branches
This commit is contained in:
parent
1d053b0c65
commit
57fd58bc3c
|
@ -51,31 +51,21 @@
|
|||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.hadoop</groupId>
|
||||
<artifactId>hadoop-maven-plugins</artifactId>
|
||||
<groupId>org.xolstice.maven.plugins</groupId>
|
||||
<artifactId>protobuf-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compile-protoc</id>
|
||||
<goals>
|
||||
<goal>protoc</goal>
|
||||
</goals>
|
||||
<id>src-compile-protoc</id>
|
||||
<configuration>
|
||||
<protocVersion>${protobuf.version}</protocVersion>
|
||||
<protocCommand>${protoc.path}</protocCommand>
|
||||
<imports>
|
||||
<param>${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto</param>
|
||||
<param>${basedir}/../../../hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto</param>
|
||||
<param>${basedir}/src/main/proto</param>
|
||||
</imports>
|
||||
<source>
|
||||
<directory>${basedir}/src/main/proto</directory>
|
||||
<includes>
|
||||
<include>HSAdminRefreshProtocol.proto</include>
|
||||
<include>mr_protos.proto</include>
|
||||
<include>mr_service_protos.proto</include>
|
||||
<include>MRClientProtocol.proto</include>
|
||||
</includes>
|
||||
</source>
|
||||
<skip>false</skip>
|
||||
<additionalProtoPathElements>
|
||||
<additionalProtoPathElement>
|
||||
${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto
|
||||
</additionalProtoPathElement>
|
||||
<additionalProtoPathElement>
|
||||
${basedir}/../../../hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto
|
||||
</additionalProtoPathElement>
|
||||
</additionalProtoPathElements>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
option java_package = "org.apache.hadoop.mapreduce.v2.hs.proto";
|
||||
option java_outer_classname = "HSAdminRefreshProtocolProtos";
|
||||
option java_generic_services = true;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
option java_package = "org.apache.hadoop.yarn.proto";
|
||||
option java_outer_classname = "MRClientProtocol";
|
||||
option java_generic_services = true;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
option java_package = "org.apache.hadoop.mapreduce.v2.proto";
|
||||
option java_outer_classname = "MRProtos";
|
||||
option java_generic_services = true;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
option java_package = "org.apache.hadoop.mapreduce.v2.proto";
|
||||
option java_outer_classname = "MRServiceProtos";
|
||||
option java_generic_services = true;
|
||||
|
|
|
@ -60,27 +60,18 @@
|
|||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.hadoop</groupId>
|
||||
<artifactId>hadoop-maven-plugins</artifactId>
|
||||
<groupId>org.xolstice.maven.plugins</groupId>
|
||||
<artifactId>protobuf-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compile-protoc</id>
|
||||
<goals>
|
||||
<goal>protoc</goal>
|
||||
</goals>
|
||||
<id>src-compile-protoc</id>
|
||||
<configuration>
|
||||
<protocVersion>${protobuf.version}</protocVersion>
|
||||
<protocCommand>${protoc.path}</protocCommand>
|
||||
<imports>
|
||||
<param>${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto</param>
|
||||
<param>${basedir}/src/main/proto</param>
|
||||
</imports>
|
||||
<source>
|
||||
<directory>${basedir}/src/main/proto</directory>
|
||||
<includes>
|
||||
<include>ShuffleHandlerRecovery.proto</include>
|
||||
</includes>
|
||||
</source>
|
||||
<skip>false</skip>
|
||||
<additionalProtoPathElements>
|
||||
<additionalProtoPathElement>
|
||||
${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto
|
||||
</additionalProtoPathElement>
|
||||
</additionalProtoPathElements>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
option java_package = "org.apache.hadoop.mapred.proto";
|
||||
option java_outer_classname = "ShuffleHandlerRecoveryProtos";
|
||||
option java_generic_services = true;
|
||||
|
|
Loading…
Reference in New Issue