Class TranslateProjectMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.takari.maven.polyglot.TranslateProjectMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="translate-project") public class TranslateProjectMojo extends org.apache.maven.plugin.AbstractMojo
Polgyglot model translator Mojo.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private org.apache.maven.project.MavenProject
     
    private String
     
    private org.sonatype.maven.polyglot.TeslaModelTranslator
     

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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 Details

    • translator

      @Component private org.sonatype.maven.polyglot.TeslaModelTranslator translator
    • input

      @Parameter(required=true, property="input") private String input
    • output

      @Parameter(required=true, property="output") private String output
    • mavenProject

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

    • TranslateProjectMojo

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