Package io.quarkus.maven
Class AbstractImageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.quarkus.maven.QuarkusBootstrapMojo
-
- io.quarkus.maven.BuildMojo
-
- io.quarkus.maven.AbstractImageMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ImageBuildMojo,ImagePushMojo
public class AbstractImageMojo extends BuildMojo
Base class for Image related mojos.
-
-
Field Summary
-
Fields inherited from class io.quarkus.maven.QuarkusBootstrapMojo
bootstrapProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractImageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanbeforeExecute()This callback allows to evaluate whether this mojo should be executed, skipped or fail.protected voiddoExecute()Main mojo execution codeprotected List<io.quarkus.maven.dependency.Dependency>forcedDependencies(io.quarkus.runtime.LaunchMode mode)Allows implementations to provide extra dependencies that should be enforced on the application.ImageBuildergetBuilder()-
Methods inherited from class io.quarkus.maven.QuarkusBootstrapMojo
appArtifactCoords, baseDir, bootstrapApplication, bootstrapApplication, bootstrapId, buildDir, execute, finalName, getBuildSystemProperties, ignoredEntries, manifestEntries, manifestSections, mavenProject, mavenSession, projectId, properties, remoteRepositories, remoteRepositoryManager, repositorySystem, repositorySystemSession, setPackageTypeSystemPropertyIfNativeProfileEnabled
-
-
-
-
Method Detail
-
getBuilder
public ImageBuilder getBuilder()
-
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 classBuildMojo- 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
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:QuarkusBootstrapMojoMain mojo execution code
-
forcedDependencies
protected List<io.quarkus.maven.dependency.Dependency> forcedDependencies(io.quarkus.runtime.LaunchMode mode)
Description copied from class:QuarkusBootstrapMojoAllows implementations to provide extra dependencies that should be enforced on the application. Originally requested by Camel K.- Overrides:
forcedDependenciesin classQuarkusBootstrapMojo- Parameters:
mode- launch mode the application is being bootstrapped in- Returns:
- list of extra dependencies that should be enforced on the application
-
-