Class CrawlRepositoryMojo

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

    @Mojo(name="crawl",
          requiresProject=false)
    public class CrawlRepositoryMojo
    extends org.apache.maven.plugin.AbstractMojo
    Crawl a Maven repository (filesystem, not HTTP) and creates a catalog file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File catalogFile
      The archetype's catalog to update.
      private RepositoryCrawler crawler  
      private java.io.File repository
      The repository to crawl.
      • 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

      • catalogFile

        @Parameter(property="catalog")
        private java.io.File catalogFile
        The archetype's catalog to update.
      • repository

        @Parameter(property="repository",
                   defaultValue="${settings.localRepository}")
        private java.io.File repository
        The repository to crawl.
    • Constructor Detail

      • CrawlRepositoryMojo

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