-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skipPom is ignored by "push" goal #1482
Comments
I see a skipPom check in BuildMojo: docker-maven-plugin/src/main/java/io/fabric8/maven/docker/BuildMojo.java Lines 154 to 155 in 9a49d21
However, I don't see any check like this in PushMojo. I haven't tried out your sample but maybe adding such a check in PushMojo should fix this problem. Would it be possible for you to try out locally built SNAPSHOT version of plugin with added skipPom check to see if it works for your sample? |
Yes I could try that, though I'm OoO on holiday for a week now, so may take a while.... |
Maybe I notice there's also a |
This appears to work, though I am unsure of any wider implications Reverse the packaging check to |
I think you're right. This docker machine support seems to be used for scenarios where docker host need to be accessed/created by docker-machine tool. I'm not sure whether it's related to generic skip parameters like |
@edrandall : polite ping, Are you back from vacation? Do you have some time to fix this? Otherwise, I can also pick this up.. |
@rohanKanojia I'm back, but I've moved to a new team and quite busy... the patch above seemed to be working fine, for the benefit of my old team. |
ohk, I'll take care of this. |
Signed-off-by: Rohan Kumar <[email protected]>
Signed-off-by: Rohan Kumar <[email protected]>
Signed-off-by: Rohan Kumar <[email protected]>
Signed-off-by: Rohan Kumar <[email protected]>
Signed-off-by: Rohan Kumar <[email protected]>
Description
Have a multi-module project with docker-maven-plugin configuration in the images-parent module, which has packaging "pom".
Each subdirectory module has a simple minimal pom.xml with packaging "jar" and Dockerfile to build an image.
The d-m-p configuration has skipPom=true configured
The "build" goal is bound to "package" amd "push" is bound to "install".
During the "build" goal, the pom with packaging=pom is correctly skipped as expected.
unfortunately the "push" goal ignores skipPom and attempts to run in the parent pom.
Info
mvn -v
) :In images-parent:
The pom for "child" has minimal configuration, the idea is it's inheriting all build config from its parent.
The workaround for the moment is to put everything in the parent into pluginManagement and add a build section to every child:
The text was updated successfully, but these errors were encountered: