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.

    • Field Detail

      • project

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

      • DevMojo

        public DevMojo()
    • Method Detail

      • getLaunchModeClasspath

        protected io.quarkus.runtime.LaunchMode getLaunchModeClasspath()
        Indicates for which launch mode the dependencies should be resolved.
        Returns:
        launch mode for which the dependencies should be resolved
      • 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