You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that inside MavenVisitor::findDependency, it will call tag.getChildValue. Which will return the literal child value. And not the one interpreted with properties.
I think this tag.getChildValue method should interpret properties to return the real value.
However, this is going very deep inside the XML reading features and might have numerous repercussions.
We saw a possibly similar change today when changing annotation processors in 000a4f0. Look for the getResolutionResult().getPom().getValue(oldVersion) to see how we resolve placeholders fairly easily from values that might contain placeholders. I hope that helps & all the best going into 2025!
What version of OpenRewrite are you using?
How are you running OpenRewrite?
via the test suite, adding this test in
java/org/openrewrite/maven/RemoveDependencyTest.java
:What did you expect to see?
That the test works :-)
What did you see instead?
That there were no changes to the template, even though I expected junit to be removed.
What is the full stack trace of any errors you encountered?
No stacktrace, just no changes done.
Are you interested in contributing a fix to OpenRewrite?
I'll try to look into it.
The text was updated successfully, but these errors were encountered: