Class CheckJibVersionMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.google.cloud.tools.jib.maven.skaffold.CheckJibVersionMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="_skaffold-fail-if-jib-out-of-date", requiresProject=false, requiresDependencyCollection=NONE, defaultPhase=INITIALIZE) public class CheckJibVersionMojo extends org.apache.maven.plugin.AbstractMojoThis internal Skaffold-related goal checks that the Jib plugin version is within some specified range. It is only required so that older versions of Jib (prior to the introduction of thejib.requiredVersionproperty) will error in such a way that it indicates the jib version is out of date. This goal can be removed once there are no users of Jib prior to 1.4.0.Expected use:
mvn jib:_skaffold-fail-if-jib-out-of-date -Djib.requiredVersion='[1.4,2)' jib:build -Dimage=xxx
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.plugin.descriptor.PluginDescriptordescriptor
-
Constructor Summary
Constructors Constructor Description CheckJibVersionMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckJibVersion()voidexecute()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkJibVersion
protected void checkJibVersion() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-