SPARK-1650: Correctly identify maven project version#572
SPARK-1650: Correctly identify maven project version#572rahulsinghaliitd wants to merge 1 commit intoapache:masterfrom
Conversation
Better account for various side-effect outputs while executing "mvn help:evaluate -Dexpression=project.version"
|
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Hm - would be it be less brittle to do this?
VERSION=$(mvn help:evaluate -Dexpression=project.version | grep -v "INFO" | tail -n 1)
That way we don't make any assumptions about the messages that can occur before the version is printed. Otherwise over time we'll have to keep writing rules to match various types of input.
There was a problem hiding this comment.
We could also tighten this up a bit by only asking the version for core:
VERSION=$(mvn help:evaluate -Dexpression=project.version -pl core | grep -v "INFO" | tail -n 1)
There was a problem hiding this comment.
- Using "tail -n 1" works for all my error cases, will make the change.
- Wouldn't using the umbrella project be more accurate (considering the fact that we use a fat jar)?
There was a problem hiding this comment.
sure, if you want it's okay to just do the parent. They all have the same version, so it's fine either way.
|
Good catch on this - made a small suggestion. |
|
@pwendell Thanks, I had recently used a maven build and encountered this problem. I even had a local commit to add the maven build to make-distribution.sh but you beat me to it. :) |
|
I am noob to GitHub and Spark upstream procedures, so confused about what happens when a pull request is accepted.
|
|
You can just make another commit and then push it to your branch. When we merge the pull request we actually bundle up all of your commits and squash them into a single commit. We will deal with cherry-picking at the time of commit, you don't need to do that yourself. |
|
@rahulsinghaliitd I actually just merged this and made the suggested change when merging it. Thanks! |
Better account for various side-effect outputs while executing "mvn help:evaluate -Dexpression=project.version" Author: Rahul Singhal <rahul.singhal@guavus.com> Closes #572 from rahulsinghaliitd/SPARK-1650 and squashes the following commits: fd6a611 [Rahul Singhal] SPARK-1650: Correctly identify maven project version (cherry picked from commit 7b2527d) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
|
Thanks @pwendell , I was waiting because I think there maybe more minor problems
|
Better account for various side-effect outputs while executing "mvn help:evaluate -Dexpression=project.version" Author: Rahul Singhal <rahul.singhal@guavus.com> Closes apache#572 from rahulsinghaliitd/SPARK-1650 and squashes the following commits: fd6a611 [Rahul Singhal] SPARK-1650: Correctly identify maven project version
Adding spark.streaming.blockInterval property
Fix default http header configuration.
Better account for various side-effect outputs while executing
"mvn help:evaluate -Dexpression=project.version"