It is possible if you are using maven-3.3.1 or newer.
Look at the extension mechanism here
http://takari.io/2015/03/19/core-extensions.html
On Sat 18 Apr 2020, 00:48 Hunter C Payne,
wrote:
> I don't believe it is possible to change the POM during a single build.
> However, are you sure this
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 Mech
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?