Class ExecuteMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.sonatype.maven.polyglot.plugin.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
ExecuteTask
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.sonatype.maven.polyglot.execute.ExecuteManager
private org.sonatype.maven.polyglot.PolyglotModelManager
private File
private org.apache.maven.project.MavenProject
private org.apache.maven.execution.MavenSession
private String
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
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
-
nativePom
-
modelManager
@Component(role=org.sonatype.maven.polyglot.PolyglotModelManager.class) private org.sonatype.maven.polyglot.PolyglotModelManager modelManager
-
-
Constructor Details
-
ExecuteMojo
public ExecuteMojo()
-
-
Method Details
-
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
-