Package io.quarkus.maven
Class ImageBuildMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.QuarkusBootstrapMojo
io.quarkus.maven.BuildMojo
io.quarkus.maven.AbstractImageMojo
io.quarkus.maven.ImageBuildMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="image-build",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
threadSafe=true)
public class ImageBuildMojo
extends AbstractImageMojo
Builds a container image.
-
Field Summary
Fields inherited from class io.quarkus.maven.AbstractImageMojo
builderName, dryRunFields inherited from class io.quarkus.maven.BuildMojo
analyticsProvider, attachRunnerAsMainArtifact, attachSboms, buildDirectory, generatedSourcesDirectory, pluginRepos, projectHelper, skip, skipOriginalJarRename, systemPropertiesFields inherited from class io.quarkus.maven.QuarkusBootstrapMojo
BOOTSTRAP_ID_PARAM, bootstrapId, bootstrapProvider, CLOSE_BOOTSTRAPPED_APP_PARAM, closeBootstrappedApp, MODE_PARAM, mojoExecution, NATIVE_PROFILE_NAME, RELOAD_POMS_PARAM, reloadPomsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThis callback allows to evaluate whether this mojo should be executed, skipped or fail.Methods inherited from class io.quarkus.maven.AbstractImageMojo
doExecute, forcedDependencies, getBuilderMethods inherited from class io.quarkus.maven.QuarkusBootstrapMojo
appArtifactCoords, baseDir, bootstrapApplication, bootstrapApplication, bootstrapApplication, bootstrapId, buildDir, closeApplication, execute, finalName, getBuildSystemProperties, getWorkspaceId, ignoredEntries, isNativeProfileEnabled, manifestEntries, manifestSections, mavenProject, mavenSession, projectId, properties, remoteRepositories, remoteRepositoryManager, repositorySystem, repositorySystemSession, setNativeEnabledIfNativeProfileEnabledMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Constructor Details
-
ImageBuildMojo
public ImageBuildMojo()
-
-
Method Details
-
beforeExecute
protected boolean beforeExecute() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:QuarkusBootstrapMojoThis callback allows to evaluate whether this mojo should be executed, skipped or fail.- Overrides:
beforeExecutein classAbstractImageMojo- Returns:
- false if the execution of the mojo should be skipped, true if the mojo should be executed
- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failure
-