You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2020/06/04 10:24:15 UTC
[GitHub] [hadoop] aajisaka commented on a change in pull request #2026: HADOOP-17046. Support downstreams' existing Hadoop-rpc implementations using non-shaded protobuf classes
aajisaka commented on a change in pull request #2026:
URL: https://github.com/apache/hadoop/pull/2026#discussion_r435150341
##########
File path: hadoop-common-project/hadoop-common/pom.xml
##########
@@ -1015,7 +1031,81 @@
</plugins>
</build>
</profile>
-
+ <!-- profile to use already generated protobuf code using 2.5.0 for aarch64-->
+ <profile>
+ <id>aarch64</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ <os>
+ <family>linux</family>
+ <arch>aarch64</arch>
+ </os>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-source-legacy-protobuf</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${basedir}/src/main/arm-java</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <!-- profile to generate protobuf code using 2.5.0-->
+ <profile>
+ <id>x86_64</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ <os>
+ <family>linux</family>
+ <arch>amd64</arch>
Review comment:
The profile is not activated on Mac and compile fails.
```suggestion
<arch>!aarch64</arch>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org