Class 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
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String appArtifactCoords()  
      protected java.io.File baseDir()  
      protected abstract boolean beforeExecute()
      This callback allows to evaluate whether this mojo should be executed, skipped or fail.
      protected io.quarkus.bootstrap.app.CuratedApplication bootstrapApplication()  
      protected io.quarkus.bootstrap.app.CuratedApplication bootstrapApplication​(io.quarkus.runtime.LaunchMode mode)  
      protected java.io.File buildDir()  
      protected abstract void doExecute()
      Main mojo execution code
      void execute()  
      protected java.lang.String executionId()  
      protected java.lang.String finalName()  
      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.MavenProject mavenProject()  
      org.apache.maven.execution.MavenSession mavenSession()  
      protected io.quarkus.maven.dependency.ArtifactKey projectId()  
      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.RemoteRepositoryManager remoteRepositoryManager()  
      protected org.eclipse.aether.RepositorySystem repositorySystem()  
      protected org.eclipse.aether.RepositorySystemSession repositorySystemSession()  
      void setLog​(org.apache.maven.plugin.logging.Log log)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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