Open gwenaskell opened 2 years ago
Note: as a workaround, I will use profiles to set executeStopOnVMShutdown to false when skip is set to true.
Thanks for the report! Sounds like a valid bug that should be easy to fix (i.e. just don't throw that error if skip is enabled). Happy to review a PR if someone is included to fix it.
Description
I use the following plugin configuration in my pom.xml:
I try to use
executeStopOnVMShutdown
option so that the docker stop is deferred to the end of the lifecycle even in case of failure.However in some situations we want to skip the execution of the plugin because the container start/stop is handled separately. I will thus execute maven with:
Unfortunately, with the option executeStopOnVMShutdown, I get this error:
What I expected
Since skip option is set to true, the docker:stop goal should return without raising the error.
How to reproduce