Skip to content

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented May 24, 2024

🔍 Description

Leverage Flatten Maven Plugin to generate resolved pom.xml.

This recovers a dev case for Scala 2.13.

We usually perform clean install with -am and -DskipTests one time and perform test after changing code on specific modules, e.g.

build/mvn -Pscala-2.13 -pl externals/kyuubi-spark-sql-engine clean install -am -DskipTests
build/mvn -Pscala-2.13 -pl externals/kyuubi-spark-sql-engine test

Currently, the second step wrongly resolves to *_2.12 dependencies due to the installed pom.xml referring to *_${scala.binary.version} while the default value of scala.binary.version is 2.12.

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

This change is verified locally by the above case.


Checklist 📝

Be nice. Be informative.

@github-actions github-actions bot added kind:infra license, community building, project builds, asf infra related, etc. kind:build labels May 24, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.29%. Comparing base (4cbecdc) to head (db7020c).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6416      +/-   ##
============================================
- Coverage     58.33%   58.29%   -0.04%     
  Complexity       24       24              
============================================
  Files           656      656              
  Lines         40267    40267              
  Branches       5498     5498              
============================================
- Hits          23489    23474      -15     
  Misses        14277    14277              
- Partials       2501     2516      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan3793 pan3793 requested a review from bowenliang123 May 24, 2024 09:01
@pan3793 pan3793 self-assigned this May 24, 2024
@pan3793 pan3793 added this to the v1.9.1 milestone May 24, 2024
@pan3793 pan3793 closed this in 4702f5a May 24, 2024
pan3793 added a commit that referenced this pull request May 24, 2024
# 🔍 Description

Leverage [Flatten Maven Plugin](https://www.mojohaus.org/flatten-maven-plugin/) to generate resolved `pom.xml`.

This recovers a dev case for Scala 2.13.

We usually perform `clean install` with `-am` and `-DskipTests` one time and perform `test` after changing code on specific modules, e.g.
```
build/mvn -Pscala-2.13 -pl externals/kyuubi-spark-sql-engine clean install -am -DskipTests
build/mvn -Pscala-2.13 -pl externals/kyuubi-spark-sql-engine test
```

Currently, the second step wrongly resolves to `*_2.12` dependencies due to the installed `pom.xml` referring to `*_${scala.binary.version}` while the default value of `scala.binary.version` is `2.12`.

## Types of changes 🔖

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

This change is verified locally by the above case.

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6416 from pan3793/flatten.

Closes #6416

db7020c [Cheng Pan] Generate flattened pom.xml

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit 4702f5a)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793
Copy link
Member Author

pan3793 commented May 24, 2024

Thanks, merged to master/1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:build kind:infra license, community building, project builds, asf infra related, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants