Class DevMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    RemoteDevMojo, TestMojo

    @Mojo(name="dev",
          defaultPhase=PREPARE_PACKAGE,
          requiresDependencyResolution=TEST,
          threadSafe=true)
    public class DevMojo
    extends org.apache.maven.plugin.AbstractMojo
    The dev mojo, that runs a quarkus app in a forked process. A background compilation process is launched and any changes are automatically reflected in your running application.

    You can use this dev mode in a remote container environment with remote-dev.

    • Constructor Summary

      Constructors 
      Constructor Description
      DevMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      boolean isGoalConfigured​(org.apache.maven.model.Plugin plugin, java.lang.String goal)  
      protected void modifyDevModeContext​(MavenDevModeLauncher.Builder builder)  
      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
    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
    • Constructor Detail

      • DevMojo

        public DevMojo()
    • Method Detail

      • 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
      • execute

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

        public boolean isGoalConfigured​(org.apache.maven.model.Plugin plugin,
                                        java.lang.String goal)