Comments (4)
I think something like your comment would have helped.
"This recipe is meant to replace properties in application.properties files, or other files ending in .properties. For changing maven or gradle properties check $link"
from rewrite.
Hi @Evodam ; it's not immediately clear what type of property you're trying to replace.
org.openrewrite.properties.ChangePropertyValue
is meant to replace properties in application.properties
files, or other files ending in .properties
.
org.openrewrite.maven.ChangePropertyValue
is meant to replace properties in Maven pom.xml
and .pom
files.
rewrite/rewrite-maven/src/main/java/org/openrewrite/maven/MavenParser.java
Lines 165 to 168 in dae7728
From your screenshots it seems you're expecting to replace properties in a pom.xml file; correct? Then you'd want to use the Maven ChangePropertyValue recipe.
If I misunderstood please let me know!
from rewrite.
🤦
Yes, I want to change properties of a pom file. Thanks for clarification. Maybe add a note or something in the documentation?
from rewrite.
Good to have that cleared up! The hint was in the package names. Open to suggestions what kind of note would have helped here. :)
from rewrite.
Related Issues (20)
- `AddManagedDependency` should allow version placeholder properties HOT 7
- org.openrewrite.gradle.RemoveDependency does not remove dependency in subproject HOT 3
- Performance issue with classpath scanning HOT 2
- Openrewrite: apply recipe list step by step (to have a proper commit history) HOT 1
- `module-info.java` trips up the JavaParser and Gradle/Maven plugin HOT 35
- Problem with parsing groovy files HOT 1
- RenameVariable does not modify variables referenced through type casts HOT 5
- Groovy Parser Failes on Method Reference Operator :: HOT 3
- Allow custom YAML filenames in YamlParser HOT 4
- There were problems parsing Inner Class HOT 1
- Parsing issue with duplicate imports HOT 2
- GroovyParser issue with statically imported constants HOT 2
- GroovyParser issue with variable assignment using Map HOT 3
- org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods ignores class level @SuppressWarnings("unused")
- Gradle Plugin/Openrewrite should skip files anntoated with javax.annotation.Generated HOT 3
- 🐛 null is not an object (evaluating 'u.upgradesAndMigrations.map') HOT 2
- MavenPomDownloader - UncheckedIOException does not get wrapped into MavenDownloadingException HOT 1
- XPathMatcher doesn't find the path in the XML document if searched with tag attribute and hence changeTagValue recipe doesn't work as expected. HOT 2
- Option to enable recipes to leave a comment indicating auto-generated code HOT 1
- Expand getCoordinates of newClass to access arguments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rewrite.