Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip set of properties #312

Open
lankavitharana opened this issue Aug 16, 2022 · 0 comments
Open

Skip set of properties #312

lankavitharana opened this issue Aug 16, 2022 · 0 comments

Comments

@lankavitharana
Copy link

lankavitharana commented Aug 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants