Package io.quarkus.maven
Class BuildMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.QuarkusBootstrapMojo
io.quarkus.maven.BuildMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractDeploymentMojo,AbstractImageMojo
@Mojo(name="build",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
threadSafe=true)
public class BuildMojo
extends QuarkusBootstrapMojo
Builds the Quarkus application.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BuildAnalyticsProvider(package private) booleanWhether to replace the original JAR with the Uber runner JAR as the main project artifact(package private) booleanWhether to attach SBOMs generated for Uber JARs as project artifacts(package private) File(package private) FileThe directory for generated source files.(package private) List<org.eclipse.aether.repository.RemoteRepository> The project's remote repositories to use for the resolution of plugins and their dependencies.(package private) org.apache.maven.project.MavenProjectHelper(package private) booleanSkips the execution of this mojo(package private) booleanDeprecated.The list of system properties defined for the plugin.Fields 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.protected voidMain mojo execution codevoidsetLog(org.apache.maven.plugin.logging.Log log) Methods inherited from class io.quarkus.maven.QuarkusBootstrapMojo
appArtifactCoords, baseDir, bootstrapApplication, bootstrapApplication, bootstrapApplication, bootstrapId, buildDir, closeApplication, execute, finalName, forcedDependencies, 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
-
Field Details
-
projectHelper
@Component org.apache.maven.project.MavenProjectHelper projectHelper -
analyticsProvider
-
pluginRepos
@Parameter(defaultValue="${project.remotePluginRepositories}", readonly=true, required=true) List<org.eclipse.aether.repository.RemoteRepository> pluginReposThe project's remote repositories to use for the resolution of plugins and their dependencies. -
generatedSourcesDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources") File generatedSourcesDirectoryThe directory for generated source files. -
skip
@Parameter(defaultValue="false", property="quarkus.build.skip") boolean skipSkips the execution of this mojo -
skipOriginalJarRename
Deprecated.When the building an Uber JAR, the default JAR is renamed by adding.originalsuffix. Enabling this property will disable the renaming of the original JAR. -
attachRunnerAsMainArtifact
@Parameter(property="attachRunnerAsMainArtifact", required=false) boolean attachRunnerAsMainArtifactWhether to replace the original JAR with the Uber runner JAR as the main project artifact -
attachSboms
@Parameter(property="attachSboms") boolean attachSbomsWhether to attach SBOMs generated for Uber JARs as project artifacts -
buildDirectory
-
systemProperties
The list of system properties defined for the plugin.
-
-
Constructor Details
-
BuildMojo
public BuildMojo()
-
-
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.- Specified by:
beforeExecutein classQuarkusBootstrapMojo- 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- Specified by:
doExecutein classQuarkusBootstrapMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failure
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log) - Specified by:
setLogin interfaceorg.apache.maven.plugin.Mojo- Overrides:
setLogin classQuarkusBootstrapMojo
-