{"id":19725646,"url":"https://github.com/xdev-software/find-and-replace-maven-plugin","last_synced_at":"2025-07-18T05:34:41.287Z","repository":{"id":227675616,"uuid":"771963582","full_name":"xdev-software/find-and-replace-maven-plugin","owner":"xdev-software","description":" A maven plugin for replacing content in files, filenames and directories.","archived":false,"fork":false,"pushed_at":"2025-07-16T04:22:50.000Z","size":883,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-17T07:24:11.580Z","etag":null,"topics":["find-and-replace","maven","plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdev-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-14T09:24:30.000Z","updated_at":"2025-07-07T03:35:03.000Z","dependencies_parsed_at":"2024-03-26T09:27:20.265Z","dependency_job_id":"0c7fae3f-49c8-4ebb-8c61-b06424829595","html_url":"https://github.com/xdev-software/find-and-replace-maven-plugin","commit_stats":null,"previous_names":["xdev-software/find-and-replace-maven-plugin"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/xdev-software/find-and-replace-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Ffind-and-replace-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Ffind-and-replace-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Ffind-and-replace-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Ffind-and-replace-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdev-software","download_url":"https://codeload.github.com/xdev-software/find-and-replace-maven-plugin/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Ffind-and-replace-maven-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705453,"owners_count":23814462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["find-and-replace","maven","plugin"],"created_at":"2024-11-11T23:32:06.709Z","updated_at":"2025-07-18T05:34:41.246Z","avatar_url":"https://github.com/xdev-software.png","language":"Java","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)\n[![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)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_find-and-replace-maven-plugin\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_find-and-replace-maven-plugin)\n[![Plugin docs](https://img.shields.io/badge/Plugin-docs-017cee?logo=apachemaven)](https://xdev-software.github.io/find-and-replace-maven-plugin/plugin-info)\n\n# find-and-replace-maven-plugin\n\nA maven plugin for replacing content in files, filenames and directories.\n\n\u003e [!NOTE]\n\u003e 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).\n\n## Usage\nA short usage guide is available [in the plugin docs](https://xdev-software.github.io/find-and-replace-maven-plugin/plugin-info).\n\nExample: Replace underscores with hyphen\n```xml\n\u003cplugin\u003e\n   \u003cgroupId\u003esoftware.xdev\u003c/groupId\u003e\n   \u003cartifactId\u003efind-and-replace-maven-plugin\u003c/artifactId\u003e\n   \u003cexecutions\u003e\n      \u003cexecution\u003e\n         \u003cid\u003ereplace-underscore-with-hyphen\u003c/id\u003e\n         \u003cphase\u003eprocess-sources\u003c/phase\u003e\n         \u003cgoals\u003e\n            \u003cgoal\u003efile-contents\u003c/goal\u003e\n         \u003c/goals\u003e\n         \u003cconfiguration\u003e\n            \u003cbaseDir\u003etesting/\u003c/baseDir\u003e\n            \u003cfileMask\u003etest.txt\u003c/fileMask\u003e\n            \u003cfindRegex\u003e_\u003c/findRegex\u003e\n            \u003creplaceValue\u003e-\u003c/replaceValue\u003e\n         \u003c/configuration\u003e\n      \u003c/execution\u003e\n   \u003c/executions\u003e\n\u003c/plugin\u003e\n```\n\n\u003cdetails\u003e\u003csummary\u003eReplace contents of auto-generated files (OpenAPI generator)\u003c/summary\u003e\n\n```xml\n\u003cplugin\u003e\n   \u003cgroupId\u003esoftware.xdev\u003c/groupId\u003e\n   \u003cartifactId\u003efind-and-replace-maven-plugin\u003c/artifactId\u003e\n   \u003cexecutions\u003e\n      \u003cexecution\u003e\n         \u003c!-- Remove so that we don't need additional dependency --\u003e\n         \u003cid\u003eremove-unused-import-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider\u003c/id\u003e\n         \u003cphase\u003eprocess-sources\u003c/phase\u003e\n         \u003cgoals\u003e\n            \u003cgoal\u003efile-contents\u003c/goal\u003e\n         \u003c/goals\u003e\n         \u003cconfiguration\u003e\n            \u003cbaseDir\u003e${generatedDirRelative}/software/xdev/${componentName}/client/\u003c/baseDir\u003e\n            \u003cfileMask\u003eApiClient.java\u003c/fileMask\u003e\n            \u003c!-- @formatter:off DO NOT INTRODUCE LINE BREAK --\u003e\n            \u003cfindRegex\u003e^import com\\.fasterxml\\.jackson\\.jaxrs\\.json\\.JacksonJsonProvider;(\\r?\\n)\u003c/findRegex\u003e\n            \u003c!-- @formatter:on --\u003e\n            \u003creplaceLineBased\u003efalse\u003c/replaceLineBased\u003e\n         \u003c/configuration\u003e\n      \u003c/execution\u003e\n      \u003cexecution\u003e\n         \u003c!-- Changes with each generator version --\u003e\n         \u003cid\u003eremove-generated-annotation\u003c/id\u003e\n         \u003cphase\u003eprocess-sources\u003c/phase\u003e\n         \u003cgoals\u003e\n            \u003cgoal\u003efile-contents\u003c/goal\u003e\n         \u003c/goals\u003e\n         \u003cconfiguration\u003e\n            \u003cbaseDir\u003e${generatedDirRelative}/software/xdev/${componentName}/\u003c/baseDir\u003e\n            \u003crecursive\u003etrue\u003c/recursive\u003e\n            \u003cfileMask\u003e.java\u003c/fileMask\u003e\n            \u003cfindRegex\u003e^@jakarta\\.annotation\\.Generated.*(\\r?\\n)\u003c/findRegex\u003e\n            \u003creplaceAll\u003efalse\u003c/replaceAll\u003e\n            \u003creplaceLineBased\u003efalse\u003c/replaceLineBased\u003e\n         \u003c/configuration\u003e\n      \u003c/execution\u003e\n      \u003cexecution\u003e\n         \u003c!-- Requiring Java serialization indicates a serious misuse of the API --\u003e\n         \u003cid\u003eremove-serialVersionUID\u003c/id\u003e\n         \u003cphase\u003eprocess-sources\u003c/phase\u003e\n         \u003cgoals\u003e\n            \u003cgoal\u003efile-contents\u003c/goal\u003e\n         \u003c/goals\u003e\n         \u003cconfiguration\u003e\n            \u003cbaseDir\u003e${generatedDirRelative}/software/xdev/${componentName}/\u003c/baseDir\u003e\n            \u003crecursive\u003etrue\u003c/recursive\u003e\n            \u003cfileMask\u003e.java\u003c/fileMask\u003e\n            \u003cfindRegex\u003e^.*serialVersionUID.*(\\r?\\n)(\\s*\\r?\\n)?\u003c/findRegex\u003e\n            \u003creplaceAll\u003efalse\u003c/replaceAll\u003e\n            \u003creplaceLineBased\u003efalse\u003c/replaceLineBased\u003e\n         \u003c/configuration\u003e\n      \u003c/execution\u003e\n   \u003c/executions\u003e\n\u003c/plugin\u003e\n```\n\n\u003c/details\u003e\n\n## Installation\n[Installation guide for the latest release](https://github.com/xdev-software/find-and-replace-maven-plugin/releases/latest#Installation)\n\n## Support\nIf 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).\n\n## Contributing\nSee the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.\n\n## Dependencies and Licenses\nView the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/find-and-replace-maven-plugin/dependencies)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdev-software%2Ffind-and-replace-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdev-software%2Ffind-and-replace-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdev-software%2Ffind-and-replace-maven-plugin/lists"}