Class ExecuteMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="execute",
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
    public class ExecuteMojo
    extends org.apache.maven.plugin.AbstractMojo
    Executes registered ExecuteTasks.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.sonatype.maven.polyglot.execute.ExecuteManager manager  
      private org.sonatype.maven.polyglot.PolyglotModelManager modelManager  
      private java.io.File nativePom  
      private org.apache.maven.project.MavenProject project  
      private org.apache.maven.execution.MavenSession session  
      private java.lang.String taskId  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecuteMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      protected org.apache.maven.model.Model modelFromNativePom​(org.apache.maven.plugin.logging.Log log)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • manager

        @Component(role=org.sonatype.maven.polyglot.execute.ExecuteManager.class)
        private org.sonatype.maven.polyglot.execute.ExecuteManager manager
      • project

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

        @Parameter(defaultValue="${session}",
                   required=true,
                   readonly=true)
        private org.apache.maven.execution.MavenSession session
      • taskId

        @Parameter(required=true,
                   property="taskId")
        private java.lang.String taskId
      • nativePom

        @Parameter
        private java.io.File nativePom
      • modelManager

        @Component(role=org.sonatype.maven.polyglot.PolyglotModelManager.class)
        private org.sonatype.maven.polyglot.PolyglotModelManager modelManager
    • Constructor Detail

      • ExecuteMojo

        public ExecuteMojo()
    • 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
      • modelFromNativePom

        protected org.apache.maven.model.Model modelFromNativePom​(org.apache.maven.plugin.logging.Log log)
                                                           throws org.apache.maven.plugin.MojoExecutionException,
                                                                  org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException