-
Notifications
You must be signed in to change notification settings - Fork 85
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
flatten plugin is replacing ${} properties when profiles are activated by property #149
Comments
I have the same sort of experience: I have a profile like this (to activate it only in the root when there is a README.md): build README.mdAfter flattening (resolveCiFriendliesOnly) I get this flattened POM: build "full path to README.md"Now it is not portable anymore. If I use ${basedir} the same behaviour. |
I am facing a similar problem. The master-branch looks fixed. Is a release of version 1.2.6 at mvnrepository planned or at least a snapshot? |
See: If the master works for you, I could try to craft a release out of the current state of the branch to ease the pain. |
Closing this as it seems to be fixed by another issue. |
Suppose that we have two POM files, the POM Parent A and the POM Child B. Inside the POM A we declare a profile, which will only be active if some file is missing in the child module.
Which happens is the fact that when I flatten the POM A, even using Flatten Mode = resolveCiFriendliesOnly, those properties above are been replaced and with this, the child module POM B does not have the option to re-configured those properties, since they are fixed now.
But if I declare this plugin (I did just for test) directly inside the build section (without profile), those same properties now ARE NOT been replaced in the flattened version of POM A. Which is, by the way, the expected result. Now, the child module (POM B) can call the plugin with the properties configured by it.
The text was updated successfully, but these errors were encountered: