Package io.quarkus.maven
Class QuarkusBootstrapMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.quarkus.maven.QuarkusBootstrapMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BuildMojo,GenerateCodeMojo
public abstract class QuarkusBootstrapMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected QuarkusBootstrapProviderbootstrapProvider
-
Constructor Summary
Constructors Constructor Description QuarkusBootstrapMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringappArtifactCoords()protected java.io.FilebaseDir()protected abstract booleanbeforeExecute()This callback allows to evaluate whether this mojo should be executed, skipped or fail.protected io.quarkus.bootstrap.app.CuratedApplicationbootstrapApplication()protected io.quarkus.bootstrap.app.CuratedApplicationbootstrapApplication(io.quarkus.runtime.LaunchMode mode)protected java.io.FilebuildDir()protected abstract voiddoExecute()Main mojo execution codevoidexecute()protected java.lang.StringexecutionId()protected java.lang.StringfinalName()protected java.util.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.protected java.lang.String[]ignoredEntries()protected java.util.Map<java.lang.String,java.lang.String>manifestEntries()protected java.util.List<ManifestSection>manifestSections()protected org.apache.maven.project.MavenProjectmavenProject()org.apache.maven.execution.MavenSessionmavenSession()protected io.quarkus.maven.dependency.ArtifactKeyprojectId()protected java.util.Map<java.lang.String,java.lang.String>properties()protected java.util.List<org.eclipse.aether.repository.RemoteRepository>remoteRepositories()protected org.eclipse.aether.impl.RemoteRepositoryManagerremoteRepositoryManager()protected org.eclipse.aether.RepositorySystemrepositorySystem()protected org.eclipse.aether.RepositorySystemSessionrepositorySystemSession()voidsetLog(org.apache.maven.plugin.logging.Log log)
-
-
-
Field Detail
-
bootstrapProvider
@Component protected QuarkusBootstrapProvider bootstrapProvider
-
-
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
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log)
- Specified by:
setLogin interfaceorg.apache.maven.plugin.Mojo- Overrides:
setLogin classorg.apache.maven.plugin.AbstractMojo
-
beforeExecute
protected abstract boolean beforeExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionThis callback allows to evaluate whether this mojo should be executed, skipped or fail.- 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 failureorg.apache.maven.plugin.MojoFailureException- in case of a failure
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionMain mojo execution code- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failureorg.apache.maven.plugin.MojoFailureException- in case of a failure
-
appArtifactCoords
protected java.lang.String appArtifactCoords()
-
forcedDependencies
protected java.util.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. Originally requested by Camel K.- Parameters:
mode- launch mode the application is being bootstrapped in- Returns:
- list of extra dependencies that should be enforced on the application
-
repositorySystem
protected org.eclipse.aether.RepositorySystem repositorySystem()
-
remoteRepositoryManager
protected org.eclipse.aether.impl.RemoteRepositoryManager remoteRepositoryManager()
-
repositorySystemSession
protected org.eclipse.aether.RepositorySystemSession repositorySystemSession()
-
remoteRepositories
protected java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories()
-
mavenProject
protected org.apache.maven.project.MavenProject mavenProject()
-
mavenSession
public org.apache.maven.execution.MavenSession mavenSession()
-
buildDir
protected java.io.File buildDir()
-
baseDir
protected java.io.File baseDir()
-
finalName
protected java.lang.String finalName()
-
manifestEntries
protected java.util.Map<java.lang.String,java.lang.String> manifestEntries()
-
manifestSections
protected java.util.List<ManifestSection> manifestSections()
-
ignoredEntries
protected java.lang.String[] ignoredEntries()
-
properties
protected java.util.Map<java.lang.String,java.lang.String> properties()
-
executionId
protected java.lang.String executionId()
-
projectId
protected io.quarkus.maven.dependency.ArtifactKey projectId()
-
bootstrapApplication
protected io.quarkus.bootstrap.app.CuratedApplication bootstrapApplication() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
bootstrapApplication
protected io.quarkus.bootstrap.app.CuratedApplication bootstrapApplication(io.quarkus.runtime.LaunchMode mode) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-