Class UpdateLocalCatalogMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.archetype.mojos.UpdateLocalCatalogMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="update-local-catalog", defaultPhase=INSTALL) public class UpdateLocalCatalogMojo extends org.apache.maven.plugin.AbstractMojo
Updates the local catalog
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private org.apache.maven.project.MavenProject
    The archetype project to add/update to the local catalog.
    private org.apache.maven.execution.MavenSession
     

    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

    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) private org.apache.maven.execution.MavenSession session
    • manager

      @Component private ArchetypeManager manager
    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) private org.apache.maven.project.MavenProject project
      The archetype project to add/update to the local catalog.
  • Constructor Details

    • UpdateLocalCatalogMojo

      public UpdateLocalCatalogMojo()
  • Method Details

    • execute

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