An open API service indexing awesome lists of open source software.

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.

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).