Klasse ExecuteRtCompilerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.hypfvieh.java.maven.plugin.rtcompiler.ExecuteRtCompilerMojo
Alle implementierten Schnittstellen:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="execute", defaultPhase=NONE, threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, configurator="include-project-compile-dependencies") public class ExecuteRtCompilerMojo extends org.apache.maven.plugin.AbstractMojo
The execute goal of the Maven plugin compiles the configured list of java sources using the, runtime-compiler and executes the static main method in an optionally configured main class.
The run-time environment must be a JDK (Java Development Kit), so source files may be compiled.
Seit:
1.0.0 - 2024-01-25
Autor:
spannm / hypfvieh
  • Feldübersicht

    Von Schnittstelle geerbte Felder org.apache.maven.plugin.Mojo

    ROLE
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Implementation of the plugin's 'execute' goal.

    Von Klasse geerbte Methoden org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • ExecuteRtCompilerMojo

      public ExecuteRtCompilerMojo()
  • Methodendetails

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Implementation of the plugin's 'execute' goal.
      Löst aus:
      org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
      org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.
      Siehe auch:
      • Mojo.execute()