I don't believe it is possible to change the POM during a single build.
However, are you sure this is what you need. Perhaps you instead need to the
dependency scope of your dependency.
Maven – Introduction to the Dependency Mechanism
|
|
| |
Maven – Introduction to the Dependency Mechanism
Brett Porter Trygve Laugstol Karl Heinz Marbaise
|
|
|
Hunter
On Friday, April 17, 2020, 12:02:22 PM PDT, 雾月政变 <[email protected]> wrote:
Hello:
We have tried many ways to extend maven plugins, and
we need a plugin that could process before build that we could change some
dependency. Is there a way to do this with a maven plugin?