Class QuarkusBootstrapMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    BuildMojo, GenerateCodeMojo, RunMojo

    public abstract class QuarkusBootstrapMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Constructor Detail

      • QuarkusBootstrapMojo

        public QuarkusBootstrapMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • setLog

        public void setLog​(org.apache.maven.plugin.logging.Log log)
        Specified by:
        setLog in interface org.apache.maven.plugin.Mojo
        Overrides:
        setLog in class org.apache.maven.plugin.AbstractMojo
      • beforeExecute

        protected abstract boolean beforeExecute()
                                          throws org.apache.maven.plugin.MojoExecutionException,
                                                 org.apache.maven.plugin.MojoFailureException
        This 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 failure
        org.apache.maven.plugin.MojoFailureException - in case of a failure
      • doExecute

        protected abstract void doExecute()
                                   throws org.apache.maven.plugin.MojoExecutionException,
                                          org.apache.maven.plugin.MojoFailureException
        Main mojo execution code
        Throws:
        org.apache.maven.plugin.MojoExecutionException - in case of a failure
        org.apache.maven.plugin.MojoFailureException - in case of a failure
      • appArtifactCoords

        protected String appArtifactCoords()
      • forcedDependencies

        protected 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 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 File buildDir()
      • baseDir

        protected File baseDir()
      • finalName

        protected String finalName()
      • ignoredEntries

        protected String[] ignoredEntries()
      • executionId

        protected 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