mojohaus / flatten-maven-plugin

Flatten Maven Plugin

Home Page:https://www.mojohaus.org/flatten-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip set of properties

lankavitharana opened this issue · comments

Does this plugin has a way to skip given set of properties being replaced?
use case is as follows, property values are externalized using a yaml file, so the build process simply converts the yaml file to a settings file and feed that into the build as maven settings file, in this case, flatten plugin complains as follows

[INFO] Total time:  0.725 s
[INFO] Finished at: 2022-08-16T14:46:32+09:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.2.7:flatten (flatten) on project mod1: 1 problem was encountered while building the effective model for com.my.test:mod1:${revision}
[ERROR] [ERROR] 'dependencies.dependency.version' for com.test.abc:common-core:jar must be a valid version but is '${common-core-version}'. @
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

so if we can simply ignore certain properties, that would be ideal