@Mojo(name="_skaffold-fail-if-jib-out-of-date",
requiresProject=false,
requiresDependencyCollection=NONE,
defaultPhase=INITIALIZE)
public class CheckJibVersionMojo
extends org.apache.maven.plugin.AbstractMojo
jib.requiredVersion property) 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
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
descriptor |
| Constructor and Description |
|---|
CheckJibVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkJibVersion() |
void |
execute() |
@Nullable @Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor descriptor
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void checkJibVersion()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2019. All rights reserved.