AFAIK, there are no built-in functions that support this. You can, however, do the following:
Replace all target bindings before (but excluding) the estimated initial phase that comes from:
default-bindings.xml<build>/<plugins>/<plugin> sections of the current and all parent POMs (check with mvn help:effective-pom )
in profile , for example:
<profiles> <profile> <id>resume-at-pre-int-test</id> <build> <plugins> <plugin> <groupId>com.soebes.maven.plugins</groupId> <artifactId>maven-echo-plugin</artifactId> <version>0.1</version> <executions> <execution> <id>skip-process-resources</id> <phase>process-resources</phase> <goals> <goal>echo</goal> </goals> </execution> </executions> <configuration> <echos> <echo>Default plugin:goal binding for process-resources phase overridden</echo> </echos> </configuration> </plugin> <plugin> ... </plugin> ... </plugins> </build> </profile> </profiles>
Activate it with mvn install -P resume-at-pre-int-test .
source share