Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-284

Property values in dependency deduced POMs for shaded modules were not substituted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.1

    Description

      The deployed POMs of sedona-spark-shaded and flink-shaded were dependency-reduced-pom.xml generated by maven-shade-plugin. The generated POMs does not have their property values substituted. For example, the artifactId in the deployed POM of sedona-spark-shaded should be sedona-spark-shaded-3.0_2.12, while it is actually sedona-spark-shaded-${spark.compat.version}_${scala.compat.version}:

          <modelVersion>4.0.0</modelVersion>
          <parent>
              <artifactId>sedona-parent</artifactId>
              <groupId>org.apache.sedona</groupId>
              <version>1.4.0</version>
          </parent>
          <artifactId>sedona-spark-shaded-${spark.compat.version}_${scala.compat.version}</artifactId>
      

      Fortunately, more recent versions of maven-shade-plugin can substitute property values when generating the dependency reduced POM, so we can simply upgrade the maven-shade-plugin to generate correct POMs for shaded modules. The problem went away after upgrading maven-shade-plugin from 2.1 to 3.4.1.

       SEDONA-276 tried to solve the property substitution of POMs. However, it didn't work on shaded modules. Now let's fix this problem on shaded modules as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m