Package org.apache.maven.archetype.mojos
Class CrawlRepositoryMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.archetype.mojos.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
FieldsModifier and TypeFieldDescriptionprivate File
The archetype's catalog to update.private RepositoryCrawler
private File
The repository to crawl.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
catalogFile
The archetype's catalog to update. -
crawler
-
repository
@Parameter(property="repository", defaultValue="${settings.localRepository}") private File repositoryThe repository to crawl.
-
-
Constructor Details
-
CrawlRepositoryMojo
public CrawlRepositoryMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-