You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by 雾月政变 <59...@qq.com> on 2020/04/17 09:49:00 UTC
Need a way to extend a plugin before build
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?
Re: Need a way to extend a plugin before build
Posted by Andreas Aronsson <ar...@aron.nu>.
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, <hu...@yahoo.com.invalid>
wrote:
> 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, 雾月政变 <59...@qq.com>
> 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?
Re: Need a way to extend a plugin before build
Posted by Hunter C Payne <hu...@yahoo.com.INVALID>.
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, 雾月政变 <59...@qq.com> 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?