Skip to content

Conversation

@Pankraz76
Copy link

@Pankraz76 Pankraz76 commented Oct 17, 2025

Issue #17487: add pluginManagement for rewrite-maven-plugin

The rewrite-maven-plugin is not placed under the pluginManagement section because it needs to be directly available for execution from the command line and IDE without requiring inheritance from a parent POM.

When defined only in pluginManagement, the plugin configuration is not automatically applied — it must be explicitly declared in each module’s build section. This would add unnecessary duplication and complexity for developers who need to run rewrite tasks locally.

Keeping it in the build section ensures that the plugin can be executed consistently in all environments while maintaining compatibility with existing project profiles such as checkstyle-autofix.

@Pankraz76

This comment was marked as resolved.

@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 2 times, most recently from d46dd76 to 6a156be Compare October 17, 2025 13:10
@Pankraz76 Pankraz76 marked this pull request as ready for review October 17, 2025 13:10
@Pankraz76
Copy link
Author

please consider this dev experience increment. Using IDE on a simple way helps to integrate this faster.

@romani

image

@romani
Copy link
Member

romani commented Oct 18, 2025

Please explain in PR description in words what is benefits of this update

@Pankraz76
Copy link
Author

Please explain in PR description in words what is benefits of this update

updated, please give me critics.

@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 3 times, most recently from 6e5b707 to 4ad7d7d Compare October 19, 2025 11:52
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

items:

@Pankraz76 Pankraz76 changed the title Issue #17487: Add SanityCheck Issue #17487: Add AutoFixes Oct 23, 2025
@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 2 times, most recently from be48393 to bb5ec99 Compare October 23, 2025 07:03
@Pankraz76
Copy link
Author

why so many ci issues ? will this be gone after merge? its just cosmetic and moved some stuff. whats going on here?

@romani
Copy link
Member

romani commented Oct 26, 2025

Error: Could not find artifact com.puppycrawl.tools:checkstyle:jar:1.0.0-SNAPSHOT in apache.snapshots

Weird....

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Most likely this

@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 5 times, most recently from f7787e9 to 5b47c94 Compare October 26, 2025 08:10
@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 3 times, most recently from 6764927 to 761242e Compare October 26, 2025 08:24
@Pankraz76 Pankraz76 requested a review from romani October 26, 2025 08:26
@Pankraz76
Copy link
Author

Error: Could not find artifact com.puppycrawl.tools:checkstyle:jar:1.0.0-SNAPSHOT in apache.snapshots

Weird....

stability first premis:

@Pankraz76 Pankraz76 changed the title Issue #17487: Add AutoFixes Issue #17487: centralize rewrite-maven-plugin Oct 26, 2025
@Pankraz76
Copy link
Author

lets split the concerns:

@Pankraz76 Pankraz76 marked this pull request as draft October 26, 2025 13:09
@Pankraz76

This comment was marked as resolved.

@Pankraz76 Pankraz76 force-pushed the fix-maven-pr branch 2 times, most recently from 58a14c5 to c74d827 Compare October 27, 2025 19:01
@Pankraz76 Pankraz76 changed the title Issue #17487: centralize rewrite-maven-plugin Issue #17487: add pluginManagement for rewrite-maven-plugin Oct 27, 2025
@Pankraz76 Pankraz76 marked this pull request as ready for review October 27, 2025 19:04
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle-openrewrite-recipes</artifactId>
<version>${checkstyle.openrewrite.version}</version>
Copy link
Author

Choose a reason for hiding this comment

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

again its a big mystery, why we can not inline this.

@romani
Copy link
Member

romani commented Oct 28, 2025

Please update PR description to clearly describe reason/benefits on moving from build to pluginManagement .

All other wording , should be removed

@Pankraz76
Copy link
Author

updated.

@romani
Copy link
Member

romani commented Oct 28, 2025

You moved plugin from profile to

<build>
    <pluginManagement>

Please update your PR description to explain correctly that you do .

@Pankraz76 Pankraz76 closed this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants