Class TranslatorMojo

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

@Mojo(name="translate", requiresProject=false, aggregator=true) public class TranslatorMojo extends org.apache.maven.plugin.AbstractMojo
Polgyglot model translator Mojo.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private String
     
    protected List<org.apache.maven.project.MavenProject>
     
    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
    • reactorProjects

      @Parameter(readonly=true, required=true, defaultValue="${reactorProjects}") protected List<org.apache.maven.project.MavenProject> reactorProjects
  • Constructor Details

    • TranslatorMojo

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