https://github.com/floverfelt/find-and-replace-maven-plugin
Maven plugin for finding and replacing values in filenames, files, and folders.
https://github.com/floverfelt/find-and-replace-maven-plugin
build-management java maven maven-plugin
Last synced: 6 months ago
JSON representation
Maven plugin for finding and replacing values in filenames, files, and folders.
- Host: GitHub
- URL: https://github.com/floverfelt/find-and-replace-maven-plugin
- Owner: floverfelt
- License: apache-2.0
- Created: 2021-04-08T17:29:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T02:13:56.000Z (about 2 years ago)
- Last Synced: 2025-09-17T15:04:51.514Z (10 months ago)
- Topics: build-management, java, maven, maven-plugin
- Language: Java
- Homepage:
- Size: 454 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Find and Replace Maven Plugin
There's a lack of an open source find and replace plugin in the Maven repository.
The most widely recommended one is the [maven-replacer-plugin](https://mvnrepository.com/artifact/com.google.code.maven-replacer-plugin/maven-replacer-plugin) which
is very old and just a wrapper around the [ant task](https://ant.apache.org/manual/Tasks/replace.html) which lacks support for file and directory names.
The find-and-replace maven plugin is an attempt to remedy these issues. It's open source, uses vanilla Java 8, and allows for replacement within files, for file names, and for directory names.
It's intended to be simple to read and contribute to.
## Documentation
Documentation can be found [here](https://floverfelt.org/find-and-replace-maven-plugin).
## Usage
The find-and-replace-maven-plugin is lifecycle phase agnostic. Simply add it to your pom wherever you'd like it to execute.
```
io.github.floverfelt
find-and-replace-maven-plugin
exec
package
find-and-replace
directory-names
testing/
_
-
true
```
## Contribution
If you'd like to contribute, feel free to raise a pull request or issue. You can support the plugin monetarily [here](https://www.buymeacoffee.com/floverfelt).