You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/03/13 01:16:52 UTC

(spark) branch master updated: [SPARK-51494][BUILD] Upgrade to Apache parent pom 33

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a3fce4724e4 [SPARK-51494][BUILD] Upgrade to Apache parent pom 33
3a3fce4724e4 is described below

commit 3a3fce4724e422e38dae56e3ae0b797a0ed6f10a
Author: Chris Nauroth <cn...@apache.org>
AuthorDate: Wed Mar 12 18:16:40 2025 -0700

    [SPARK-51494][BUILD] Upgrade to Apache parent pom 33
    
    ### What changes were proposed in this pull request?
    
    Spark currently uses Apache parent pom 18. This is a proposed upgrade to the latest version, which is 33.
    
    ### Why are the changes needed?
    
    Spark has not updated the parent pom since [SPARK-22511](https://issues.apache.org/jira/browse/SPARK-22511) 8 years ago. The full delta is visible here:
    
    https://github.com/apache/maven-apache-parent/compare/apache-18...apache-33
    
    Summary of notable changes:
    * [MPOM-118](https://issues.apache.org/jira/browse/MPOM-118): Enforce strong GPG signatures by default
    * [MPOM-225](https://issues.apache.org/jira/browse/MPOM-225): add ASF snapshots repository to pluginRepositories
    * [MPOM-260](https://issues.apache.org/jira/browse/MPOM-260): Configure Maven Javadoc Plugin for more reproducible builds
    * [MPOM-287](https://issues.apache.org/jira/browse/MPOM-287): Disable m2e warning for m-remote-resource-p
    * [MPOM-378](https://issues.apache.org/jira/browse/MPOM-378): Using an SPDX identifier as the license name is recommended by Maven
    * [MPOM-486](https://issues.apache.org/jira/browse/MPOM-486): Enable autoVersionSubmodules for maven-release-plugin
    * Version management and upgrades for various Maven plugins. For the most part, Spark was already managing these plugins to versions equal to or greater than the parent pom. The one exception is maven-jar-plugin, which I've upgraded to match the parent.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, this does not introduce changes to user-facing Spark functionality. Version updates will be visible to developers.
    
    ### How was this patch tested?
    
    Local `mvn` build with the new parent pom succeeds. I also verified elapsed time for a full build is approximately the same before and after, because maven-jar-plugin has occasionally had performance regressions in the past.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #50261 from cnauroth/SPARK-51494.
    
    Authored-by: Chris Nauroth <cn...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 pom.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0670d9f8d388..886fe31f52de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
-    <version>18</version>
+    <version>33</version>
   </parent>
   <groupId>org.apache.spark</groupId>
   <artifactId>spark-parent_2.13</artifactId>
@@ -341,6 +341,7 @@
     <terajdbc.version>20.00.00.39</terajdbc.version>
     <!-- Used for SBT build to retrieve the Spark version -->
     <spark.version>${project.version}</spark.version>
+    <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
   </properties>
   <repositories>
     <repository>
@@ -2969,7 +2970,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
-          <version>3.4.0</version>
+          <version>${maven-jar-plugin.version}</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -3659,7 +3660,7 @@
                       <pluginExecutionFilter>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-jar-plugin</artifactId>
-                        <versionRange>3.4.0</versionRange>
+                        <versionRange>${maven-jar-plugin.version}</versionRange>
                         <goals>
                           <goal>test-jar</goal>
                         </goals>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org