fabric8io / docker-maven-plugin

Maven plugin for running and creating Docker images
https://dmp.fabric8.io
Apache License 2.0
1.88k stars 643 forks source link

noCache property does nothing when set in pom #1335

Open vrevelas opened 4 years ago

vrevelas commented 4 years ago

Description

I'm using a no-xml simple dockerfile build config and would like to disable the build cache.

Setting -Ddocker.noCache=true on the Maven command line works fine, but

<properties>
    <docker.noCache>true</docker.noCache>
</properties>

does nothing.

Based on the docs, I'm not sure if this is intended behaviour or not. For example, both docker.noCache and docker.name appear in the list of properties in table 29 here. Setting docker.name as a property in the pom works fine.

So I'm suggesting a fix would be to either

Info

rhuss commented 4 years ago

Look like a bug and indeed I would fix that the property is honoured, too. Happy to take any PR ! (I, unfortunately, can't invest much time in this project)

Mikep86 commented 2 years ago

This issue has been open for a long time with no activity. Is there any update on a fix?

rohanKanojia commented 2 years ago

@Mikep86 : Sorry for the inconvenience. Would it be possible for you to find time to fix this and provide a PR?