Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/xdev-software/find-and-replace-maven-plugin

A maven plugin for replacing content in files, filenames and directories.
https://github.com/xdev-software/find-and-replace-maven-plugin

find-and-replace maven plugin

Last synced: 2 days ago
JSON representation

A maven plugin for replacing content in files, filenames and directories.

Awesome Lists containing this project

README

        

[![Latest version](https://img.shields.io/maven-central/v/software.xdev/find-and-replace-maven-plugin?logo=apache%20maven)](https://mvnrepository.com/artifact/software.xdev/find-and-replace-maven-plugin)
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/find-and-replace-maven-plugin/check-build.yml?branch=develop)](https://github.com/xdev-software/find-and-replace-maven-plugin/actions/workflows/check-build.yml?query=branch%3Adevelop)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_find-and-replace-maven-plugin&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_find-and-replace-maven-plugin)
[![Plugin docs](https://img.shields.io/badge/Plugin-docs-017cee?logo=apachemaven)](https://xdev-software.github.io/find-and-replace-maven-plugin/plugin-info)

# find-and-replace-maven-plugin

A maven plugin for replacing content in files, filenames and directories.

> [!NOTE]
> This is a fork of [floverfelt/find-and-replace-maven-plugin](https://github.com/floverfelt/find-and-replace-maven-plugin) with some [additional functionality](CHANGELOG.md#100).

## Usage
A short usage guide is available [in the plugin docs](https://xdev-software.github.io/find-and-replace-maven-plugin/plugin-info).

Example: Replace underscores with hyphen
```xml

software.xdev
find-and-replace-maven-plugin


replace-underscore-with-hyphen
process-sources

file-contents


testing/
test.txt
_
-


```

Replace contents of auto-generated files (OpenAPI generator)

```xml

software.xdev
find-and-replace-maven-plugin



remove-unused-import-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider
process-sources

file-contents


${generatedDirRelative}/software/xdev/${componentName}/client/
ApiClient.java

^import com\.fasterxml\.jackson\.jaxrs\.json\.JacksonJsonProvider;(\r?\n)

false




remove-generated-annotation
process-sources

file-contents


${generatedDirRelative}/software/xdev/${componentName}/
true
.java
^@jakarta\.annotation\.Generated.*(\r?\n)
false
false




remove-serialVersionUID
process-sources

file-contents


${generatedDirRelative}/software/xdev/${componentName}/
true
.java
^.*serialVersionUID.*(\r?\n)(\s*\r?\n)?
false
false


```

## Installation
[Installation guide for the latest release](https://github.com/xdev-software/find-and-replace-maven-plugin/releases/latest#Installation)

## Support
If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).

## Contributing
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.

## Dependencies and Licenses
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/find-and-replace-maven-plugin/dependencies)