-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant' exclude dependency-reduced-pom.xml #650
Comments
I've also not been able to use exclusions successfully. I have this configuration to match folders like
|
Hmm; the reason for this will be that we ask Maven what files to process, and likely this is one of the files returned. rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java Lines 150 to 153 in d1b68cd
rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java Lines 463 to 467 in d1b68cd
The Maven shade plugin |
Just a quick note here that @rickie has reported seeing the same issue with ci-friendly-flatten-maven-plugin. Any fix ideally takes both into account, to fall back to the original pom.xml, not any modified pom. |
In my case, developer have commited I propose this MR to fix the problem: |
Thanks @timtebeek for taking that case into account 😄 ! |
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
What is the smallest, simplest way to reproduce the problem?
Use Maven Shade plugin and add
dependency-reduced-pom.xml
to excluded files (-Drewrite.exclusions=dependency-reduced-pom.xml
)What did you expect to see?
No patch generated for dependency-reduced-pom.xml
What did you see instead?
Patch generated for dependency-reduced-pom.xml
The text was updated successfully, but these errors were encountered: