-
Notifications
You must be signed in to change notification settings - Fork 75
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
The manipulationWriteChanged parameter and expected behavior #1012
Comments
Apologies I missed the notification of this issue. Can you reproduce the problem if you install to lib/ext or use the CLI? |
Hi, don't worry :) I use the latest version 4.16, |
Ok I think I understand what you mean now. The problem is, PME was really only ever designed to modify the POMs and write them back out. The request to modify in memory, while feasible, isn't that helpful in its current format - this is because, as you can see, the results of the modification are not passed to other executions which are effectively independent. It might be possible to do something around the eventspy and update the model although avoiding corruption of the DAG is not straightforward. |
Ok, I misunderstood the documentation, too bad, it was very useful to me. |
Compromise... before applying changes create a backup of the poms, also implement a rollback goal, like the versions plugin does? Minimum effort, maximum yield :) |
@mborra Having a flag to create backups of the poms (defaulted to off) would be acceptable I think. I am not convinced about needed any form of rollback. Would you be willing to contribute that feature? |
The rollback would be just to avoid having to revert with git. I don't have a lot of time but it would be interesting to implement it. |
I don't think the rollback is required really? Given a simple |
Hi to all, I have tried the new parameters
manipulationWriteChanged
but unfortunately it doesn't works as I expected, with this arguments the PME extension (extensions.xml
) reports the correct actions in the logs, but the artifacts end with the postfix-SNAPSHOT
:If I remove the
manipulationWriteChanged
parameter then the POMs are rewritten and everything works, but it's not what I expected reading the documentation, I expected it to work in-memory.Many thanks
The text was updated successfully, but these errors were encountered: