Hello,

I’m using jib-maven-plugin with some properties provided on the command line. 
According to 
https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#system-properties
 this can be done as follows:

        mvn compile jib:build -Djib.to.image=myregistry/myimage:latest

I’ve been successfully using the syntax above with Maven 3.9.9, but when I try 
this with Maven 4.0.0-rc-2 it seems that the ‘jib.to.image’ property is not 
picked up by jib-maven-plugin.

When I do this, it does work:

        MAVEN_OPTS="-Djib.to.image=myregistry/myimage:latest” compile jib:build

Is this an intentional change between Maven 3 and 4? Is the jib-maven-plugin 
documentation incorrect, or at least for Maven 4?

I noticed that the jib-maven-plugin mentions that these are system properties, 
while the -D flag is for setting user properties, but according to Maven 3’s 
‘mvn --help’ this was also already the case in Maven 3.

Nils.

Reply via email to