Running maven plugins depending on future phase execution

55 Views Asked by At

I'm using maven-enforcer-plugin mainly for

                        <dependencyConvergence />
                        <requireUpperBoundDeps />.

I don't want to run it on "mvn clean" or "mvn test" in order to avoid unnecessary delays for these commands, esp when running unit tests from inside NetBeans, so I added it to the verify phase and it works quite well.

However, I'd like to run it earlier, ie. before any compilation is done, but only if we do more than just tests.... is there any way to do this? In other words: is there a way to execute a plugin inside an early phase depending on whether another later phase is planned?

0

There are 0 best solutions below