Github user tweise commented on a diff in the pull request:
https://github.com/apache/bigtop/pull/188#discussion_r107581947
--- Diff: bigtop-packages/src/common/apex/do-component-build ---
@@ -28,6 +28,9 @@ command -v mvn > /dev/null 2>&1 || {
# Build apex
mvn clean package -DskipTests "$@"
+#Find hadoop.version from pom.xml
+APEX_HADOOP_VERSION=$(grep -oPm1 "(?<=<hadoop.version>)[^<]+" pom.xml)
--- End diff --
@rsv that sums it up. Indeed it should be possible to pass the
hadoop.version to the apex build.
I would also like to point out that the Apex package can be assembled
without building Apex from source, by optionally using the official release
artifacts from central:
https://github.com/atrato/apex-cli-package/blob/master/pom.xml
That script also shows how the somewhat quirky dependency filtering pom can
be simplified (and the stray legacy datatorrent references removed).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---