[SPARK-27467][BUILD] Upgrade Maven to 3.6.1
## 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 This was committed and reverted due to AppVeyor failure. It turns out that the root cause is `PATH` issue. 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 Closes #24481 from dongjoon-hyun/SPARK-R. Lead-authored-by: Dongjoon Hyun <dhyun@apple.com> Co-authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
This commit is contained in:
parent
875e7e1d97
commit
375cfa3d89
|
@ -81,14 +81,14 @@ if (!(Test-Path $tools)) {
|
|||
# ========================== Maven
|
||||
Push-Location $tools
|
||||
|
||||
$mavenVer = "3.6.0"
|
||||
$mavenVer = "3.6.1"
|
||||
Start-FileDownload "https://archive.apache.org/dist/maven/maven-3/$mavenVer/binaries/apache-maven-$mavenVer-bin.zip" "maven.zip"
|
||||
|
||||
# extract
|
||||
Invoke-Expression "7z.exe x maven.zip"
|
||||
|
||||
# add maven to environment variables
|
||||
$env:Path += ";$tools\apache-maven-$mavenVer\bin"
|
||||
$env:PATH = "$tools\apache-maven-$mavenVer\bin;" + $env:PATH
|
||||
$env:M2_HOME = "$tools\apache-maven-$mavenVer"
|
||||
$env:MAVEN_OPTS = "-Xmx2g -XX:ReservedCodeCacheSize=512m"
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ license: |
|
|||
## Apache Maven
|
||||
|
||||
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.
|
||||
Spark requires Scala 2.12; support for Scala 2.11 was removed in Spark 3.0.0.
|
||||
|
||||
### Setting up Maven's Memory Usage
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -115,7 +115,7 @@
|
|||
<java.version>1.8</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<maven.version>3.6.0</maven.version>
|
||||
<maven.version>3.6.1</maven.version>
|
||||
<sbt.project.name>spark</sbt.project.name>
|
||||
<slf4j.version>1.7.16</slf4j.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
|
|
Loading…
Reference in a new issue