-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27467][BUILD] Upgrade Maven to 3.6.1 #24481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
## What changes were proposed in this pull request? This PR aims to upgrade Maven to 3.6.1 to bring JDK9+ related patches like [MNG-6506](https://issues.apache.org/jira/browse/MNG-6506). For the full release note, please see the following. - https://maven.apache.org/docs/3.6.1/release-notes.html ## How was this patch tested? Pass the Jenkins with `[test-maven]` tag. Closes #24377 from dongjoon-hyun/SPARK-27467. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
…d Doc ## What changes were proposed in this pull request? Update the `docs/building-spark.md`. Otherwise: ``` mvn package -DskipTests=true ... [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) spark-parent_2.12 --- [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message: Detected Maven Version: 3.6.0 is not in the allowed range 3.6.1. ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) on project spark-parent_2.12: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1] [ERROR] ... ``` ## How was this patch tested? Just test `https://archive.apache.org/dist/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.zip` is avilable. Closes #24477 from wangyum/SPARK-27467. Authored-by: Yuming Wang <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
|
cc @HyukjinKwon , @wangyum |
|
I asked this case to AppVeyor - will share the updates if I get. I will probably be able to help take a look further in 2 days. |
|
|
||
| The Maven-based build is the build of reference for Apache Spark. | ||
| Building Spark using Maven requires Maven 3.6.0 and Java 8. | ||
| Building Spark using Maven requires Maven 3.6.1 and Java 8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably doesn't actually require 3.6.1 over 3.6.0, but this is fine. I think it does require 3.6.x though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will throw exception if it's not 3.6.1:
mvn package -DskipTests=true
...
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) @ spark-parent_2.12 ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.6.0 is not in the allowed range 3.6.1.
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) on project spark-parent_2.12: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR]
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea.. so problem is here. I don't know why it makes the build failed in Appveyor
|
Yeah you need to use |
|
Test build #104974 has finished for PR 24481 at commit
|
|
Haven't got any information from AppVeyor - looks they don't know what's going on too ... |
|
Thank you so much for informing that, @HyukjinKwon . One strange thing in Today's run is that |
|
|
||
| # add maven to environment variables | ||
| $env:Path += ";$tools\apache-maven-$mavenVer\bin" | ||
| $env:PATH = "$tools\apache-maven-$mavenVer\bin;" + $env:PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the AppVoyer failure.
|
Test build #105094 has finished for PR 24481 at commit
|
|
Thank you, @HyukjinKwon , @wangyum , @srowen , @felixcheung . Since this passed the AppVeyor and Jenkins, I merged this to master back. |
|
Thanks, @dongjoon-hyun |
|
Thank YOU, @HyukjinKwon . Sorry for missing AppVeyor. :) |
What changes were proposed in this pull request?
This PR aims to upgrade Maven to 3.6.1 to bring JDK9+ related patches like MNG-6506. For the full release note, please see the following.
This was committed and reverted due to AppVeyor failure. It turns out that the root cause is
PATHissue. With the updated AppVeyor script, it passed.https://ci.appveyor.com/project/ApacheSoftwareFoundation/spark/builds/24273412
How was this patch tested?
Pass the Jenkins and AppVoyer