Class GenerateMessageConstantsMojo

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

    @Mojo(name="generateMessageConstants",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE,
          requiresProject=true)
    public class GenerateMessageConstantsMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Detail

      • filePath

        @Parameter(property="filePath",
                   required=true)
        protected File filePath
        the path to the source file
      • targetClass

        @Parameter(property="targetClass",
                   required=true)
        protected String targetClass
        the fully qualified name of the target class to generate
      • outfolder

        @Parameter(property="outFolder",
                   defaultValue="target/generated-sources/constants",
                   required=false)
        protected File outfolder
        the output-folder for the generated class
      • skip

        @Parameter(property="skip",
                   defaultValue="false",
                   required=false)
        protected boolean skip
        skips the execution
      • buildContext

        @Component
        protected org.sonatype.plexus.build.incremental.BuildContext buildContext
    • Constructor Detail

      • GenerateMessageConstantsMojo

        public GenerateMessageConstantsMojo()
    • Method Detail

      • getMessage

        protected String getMessage()
      • getArgs

        protected String[] getArgs()
      • 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
      • needsToBeExecuted

        protected boolean needsToBeExecuted()