Skip to content

HIVE-29758: Fix maven warning for duplicate Iceberg dependency#6633

Open
ayushtkn wants to merge 1 commit into
apache:masterfrom
ayushtkn:HIVE-29758
Open

HIVE-29758: Fix maven warning for duplicate Iceberg dependency#6633
ayushtkn wants to merge 1 commit into
apache:masterfrom
ayushtkn:HIVE-29758

Conversation

@ayushtkn

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Fix maven warning while building hive

Why are the changes needed?

that prints warning and confuses "me"

Does this PR introduce any user-facing change?

No

How was this patch tested?

Before

ayush@ayushpc:~/hive$ mvn clean install -DskipTests -Pitests
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.hive:hive-it-iceberg-qfile:jar:4.3.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.hive:hive-iceberg-handler:jar -> duplicate declaration of version (?) @ line 288, column 17
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Hive Storage API                                                   [jar]
[INFO] Hive                                                               [pom]

After

ayush@ayushpc:~/hive$ mvn clean install -DskipTests -Pitests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Hive Storage API                                                   [jar]

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

LGTM +1

<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-iceberg-handler</artifactId>
<scope>test</scope>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we retain tag?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I thought they added in compile scope because test wasn't enough, but the test is passing with test scope as well

[INFO] Running org.apache.hadoop.hive.cli.TestIcebergRESTCatalogGravitinoLlapLocalCliDriver
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 321.6 s -- in org.apache.hadoop.hive.cli.TestIcebergRESTCatalogGravitinoLlapLocalCliDriver
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

Let me push to add the classifier and see if CI complains about anything

@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants