Class AbstractModelloGeneratorMojo

    • Constructor Detail

      • AbstractModelloGeneratorMojo

        public AbstractModelloGeneratorMojo()
    • Method Detail

      • getGeneratorType

        protected abstract String getGeneratorType()
      • getOutputDirectory

        public abstract File getOutputDirectory()
      • producesCompilableResult

        protected boolean producesCompilableResult()
      • producesResources

        protected boolean producesResources()
      • createParameters

        protected Properties createParameters()
        Creates a Properties objects.
        The abstract mojo will override the output directory, the version and the package with version flag.
        Returns:
        the parameters
      • customizeParameters

        protected void customizeParameters​(Properties parameters)
        Override this method to customize the values in the properties set.

        This method will be called after the parameters have been populated with the parameters in the abstract mojo.

        Parameters:
        parameters - the parameters to customize
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getBasedir

        public String getBasedir()
      • setBasedir

        public void setBasedir​(String basedir)
      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)
      • getPackageWithVersion

        public boolean getPackageWithVersion()
      • setPackageWithVersion

        public void setPackageWithVersion​(boolean packageWithVersion)
      • setModelloCore

        public void setModelloCore​(ModelloCore modelloCore)
      • setBuildContext

        public void setBuildContext​(org.sonatype.plexus.build.incremental.BuildContext context)
      • getProject

        public org.apache.maven.project.MavenProject getProject()
      • setProject

        public void setProject​(org.apache.maven.project.MavenProject project)
      • setPackagedVersions

        public void setPackagedVersions​(List<String> packagedVersions)
      • getModels

        public String[] getModels()
        Returns:
        Returns the paths to the models.
      • setModels

        public void setModels​(String[] models)
        Parameters:
        models - Sets the paths to the models.