Class 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 java.lang.String input  
      private org.apache.maven.project.MavenProject mavenProject  
      private java.lang.String output  
      private org.sonatype.maven.polyglot.TeslaModelTranslator translator  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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

      • translator

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

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

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

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

      • TranslateProjectMojo

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