You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for this plugin.
I have a good use case for https://maven.apache.org/maven-ci-friendly.html, and handling the version of the project in a single variable instead of hardcoding it in each parent section of submodules is really satisfying.
Issue description
I followed the "maven-ci-friendly.html" above and noticed something weird:
I have in my ~/.m2/settings.xml a profile defining the version of a dependency needed by my project in a property.
My project has a main maven module, packaged in pom, defining the dependency management using the version from the settings.xml.
A submodule is then using the dependency specified in the dependency management.
When using the flatten-maven-plugin in flattenMode "resolveCiFriendliesOnly", the property defined in my settings.xml is not interpolated and the build fail.
Workaround
If I copy paste the property from settings.xml to the main module "properties" section, then it works as expected.
Reproduction
I created a small project to reproduce the issue, you can find it here
Expected behavior
I don't understand why a property defined in the parent pom.xml is interpoloated, but not a property defined in the settings.xml.
Am I misunderstanding somethings and is it a normal behavior, or is it a bug ?
Thanks a lot in advance for your help, I wish you a nice day.
The text was updated successfully, but these errors were encountered:
Hello,
First of all, thanks for this plugin.
I have a good use case for https://maven.apache.org/maven-ci-friendly.html, and handling the version of the project in a single variable instead of hardcoding it in each parent section of submodules is really satisfying.
Issue description
I followed the "maven-ci-friendly.html" above and noticed something weird:
I have in my ~/.m2/settings.xml a profile defining the version of a dependency needed by my project in a property.
My project has a main maven module, packaged in pom, defining the dependency management using the version from the settings.xml.
A submodule is then using the dependency specified in the dependency management.
When using the flatten-maven-plugin in flattenMode "resolveCiFriendliesOnly", the property defined in my settings.xml is not interpolated and the build fail.
Workaround
If I copy paste the property from settings.xml to the main module "properties" section, then it works as expected.
Reproduction
I created a small project to reproduce the issue, you can find it here
Expected behavior
I don't understand why a property defined in the parent pom.xml is interpoloated, but not a property defined in the settings.xml.
Am I misunderstanding somethings and is it a normal behavior, or is it a bug ?
Thanks a lot in advance for your help, I wish you a nice day.
The text was updated successfully, but these errors were encountered: