Skip to content

Commit 34cf415

Browse files
committed
Test Maven 4
1 parent bc47877 commit 34cf415

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

build/mvn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ install_mvn() {
125125
fi
126126
if [ $(version $MVN_DETECTED_VERSION) -ne $(version $MVN_VERSION) ]; then
127127
local MVN_TARBALL="apache-maven-${MVN_VERSION}-bin.tar.gz"
128-
local FILE_PATH="maven/maven-3/${MVN_VERSION}/binaries/${MVN_TARBALL}"
128+
local FILE_PATH="maven/maven-${MVN_VERSION:0:1}/${MVN_VERSION}/binaries/${MVN_TARBALL}"
129129
local APACHE_MIRROR=${APACHE_MIRROR:-'https://www.apache.org/dyn/closer.lua'}
130130
local MIRROR_URL_QUERY="?action=download"
131131

dev/test-dependencies.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ HADOOP_HIVE_PROFILES=(
3838
)
3939

4040
MVN_EXEC_PLUGIN_VERSION=$(build/mvn help:evaluate \
41-
-Dexpression=exec-maven-plugin.version -q -DforceStdout | grep -E "[0-9]+\.[0-9]+\.[0-9]+")
41+
-Dexpression=exec-maven-plugin.version -q -DforceStdout | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+")
4242

4343
# We'll switch the version to a temp. one, publish POMs using that new version, then switch back to
4444
# the old version. We need to do this because the `dependency:build-classpath` task needs to
@@ -52,9 +52,9 @@ OLD_VERSION=$($MVN -q \
5252
--non-recursive \
5353
org.codehaus.mojo:exec-maven-plugin:${MVN_EXEC_PLUGIN_VERSION}:exec | grep -E '[0-9]+\.[0-9]+\.[0-9]+')
5454
# dependency:get for guava and jetty-io are workaround for SPARK-37302.
55-
GUAVA_VERSION=$(build/mvn help:evaluate -Dexpression=guava.version -q -DforceStdout | grep -E "^[0-9\.]+")
55+
GUAVA_VERSION=$(build/mvn help:evaluate -Dexpression=guava.version -q -DforceStdout | grep -o -E "[0-9][0-9a-zA-Z\.\-]+")
5656
build/mvn dependency:get -Dartifact=com.google.guava:guava:${GUAVA_VERSION} -q
57-
JETTY_VERSION=$(build/mvn help:evaluate -Dexpression=jetty.version -q -DforceStdout | grep -E "[0-9]+\.[0-9]+\.[0-9]+")
57+
JETTY_VERSION=$(build/mvn help:evaluate -Dexpression=jetty.version -q -DforceStdout | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+")
5858
build/mvn dependency:get -Dartifact=org.eclipse.jetty:jetty-io:${JETTY_VERSION} -q
5959
if [ $? != 0 ]; then
6060
echo -e "Error while getting version string from Maven:\n$OLD_VERSION"

pom.xml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<java.version>17</java.version>
121121
<java.minimum.version>17.0.11</java.minimum.version>
122122
<maven.compiler.release>${java.version}</maven.compiler.release>
123-
<maven.version>3.9.11</maven.version>
123+
<maven.version>4.0.0-rc-5</maven.version>
124124
<exec-maven-plugin.version>3.6.1</exec-maven-plugin.version>
125125
<sbt.project.name>spark</sbt.project.name>
126126
<asm.version>9.9</asm.version>
@@ -3493,20 +3493,14 @@
34933493
-->
34943494
<profile>
34953495
<id>snapshots-and-staging</id>
3496-
<properties>
3497-
<!-- override point for ASF staging/snapshot repos -->
3498-
<asf.staging>https://repository.apache.org/content/groups/staging/</asf.staging>
3499-
<asf.snapshots>https://repository.apache.org/content/repositories/snapshots/</asf.snapshots>
3500-
</properties>
3501-
35023496
<pluginRepositories>
35033497
<pluginRepository>
35043498
<id>ASF Staging</id>
3505-
<url>${asf.staging}</url>
3499+
<url>https://repository.apache.org/content/groups/staging/</url>
35063500
</pluginRepository>
35073501
<pluginRepository>
35083502
<id>ASF Snapshots</id>
3509-
<url>${asf.snapshots}</url>
3503+
<url>https://repository.apache.org/content/repositories/snapshots/</url>
35103504
<snapshots>
35113505
<enabled>true</enabled>
35123506
</snapshots>
@@ -3519,11 +3513,11 @@
35193513
<repositories>
35203514
<repository>
35213515
<id>ASF Staging</id>
3522-
<url>${asf.staging}</url>
3516+
<url>https://repository.apache.org/content/groups/staging/</url>
35233517
</repository>
35243518
<repository>
35253519
<id>ASF Snapshots</id>
3526-
<url>${asf.snapshots}</url>
3520+
<url>https://repository.apache.org/content/repositories/snapshots/</url>
35273521
<snapshots>
35283522
<enabled>true</enabled>
35293523
</snapshots>

0 commit comments

Comments
 (0)