Skip to content

Conversation

@kaorimatz
Copy link
Member

@kaorimatz kaorimatz commented Mar 19, 2025

The compile scope dependencies are missing from the released POM since 0.9.7. e.g. https://repo1.maven.org/maven2/com/treasuredata/client/td-client/0.9.7/td-client-0.9.7.pom

This was caused by the maven-shade-plugin update in #192. Previously, maven-shade-plugin did not create the dependency reduced POM when shadedArtifactAttached was enabled, but in 3.3.0 the behavior changes and the plugin creates the dependency reduced POM regardless of the shadedArtifactAttached setting (MSHADE-321).

The problem is that the plugin not only creates the dependency reduced POM but also modifies the current project model to use the generated POM, which affects subsequent Maven executions (MSHADE-419).

As a workaround, we can stop creating the dependency reduced POM by disabling createDependencyReducedPom.

@github-actions github-actions bot added the bug label Mar 19, 2025
@kaorimatz kaorimatz force-pushed the missing-compile-scope-dependencies branch from 6e65644 to c0effc6 Compare March 19, 2025 09:28
@kaorimatz kaorimatz changed the title Fix missing compile scope dependencies in released pom.xml Fix missing compile scope dependencies in released POM Mar 19, 2025
@kaorimatz kaorimatz marked this pull request as ready for review March 19, 2025 09:47
@aamine aamine requested a review from a team March 25, 2025 02:13
Copy link

@aamine aamine left a comment

Choose a reason for hiding this comment

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

I wonder if we really need shade jar, but LGTM for this change.

Copy link
Contributor

@tung-vu-td tung-vu-td left a comment

Choose a reason for hiding this comment

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

LGTM

@kaorimatz
Copy link
Member Author

Thank you both for the review!

@kaorimatz kaorimatz merged commit f04185c into master Mar 25, 2025
7 checks passed
@kaorimatz kaorimatz deleted the missing-compile-scope-dependencies branch March 25, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants