java - Find and replace string in a maven multi-module project - Stack Overflow

admin2025-04-16  1

I have a maven based multi-module project. Some of the modules holds scripts and dockerfile as well. They are not listed under <modules> section in parent pom.

I want to keep the project version at one place and it should reflect at all places when updated by CI. I tried maven-replacer-plugin but it seems to work only for sub-modules declared in pom, and not for undeclared sub-modules.

I want if this FIND AND REPLACE task can run and on parent directory replacing string PP_VERSION recursively with version value provided in a project.properties file placed in parent directory.

转载请注明原文地址:http://www.anycun.com/QandA/1744759776a87220.html