Package org.eclipse.sisu.mojos
Class IndexMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.sisu.mojos.IndexMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="index",
requiresDependencyResolution=TEST,
threadSafe=true)
public class IndexMojo
extends org.apache.maven.plugin.AbstractMojo
Generates a qualified class index for the current project and its dependencies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.sonatype.plexus.build.incremental.BuildContextFor m2e incremental build supportprotected StringComma separated list of ArtifactIds to exclude when indexing.protected StringComma Separated list of Classifiers to exclude when indexing.protected StringComma separated list of GroupIds to exclude when indexing.protected StringScope to exclude.protected booleanIf we should exclude transitive dependencies when indexing.protected StringComma Separated list of Types to exclude when indexing.protected StringComma separated list of ArtifactIds to include when indexing.protected StringComma Separated list of Classifiers to include when indexing.protected booleanIf we should include project dependencies when indexing.protected StringComma separated list of GroupIds to include when indexing.protected StringScope to include.protected StringComma Separated list of Types to include when indexing.protected FileThe output directory.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidsetOutputDirectory(File outputDirectory) voidsetProject(org.apache.maven.project.MavenProject project) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(property="outputDirectory", defaultValue="${project.build.outputDirectory}") protected File outputDirectoryThe output directory. -
includeDependencies
@Parameter(property="includeDependencies", defaultValue="true") protected boolean includeDependenciesIf we should include project dependencies when indexing. -
excludeGroupIds
Comma separated list of GroupIds to exclude when indexing. -
includeGroupIds
Comma separated list of GroupIds to include when indexing. -
excludeArtifactIds
Comma separated list of ArtifactIds to exclude when indexing. -
includeArtifactIds
Comma separated list of ArtifactIds to include when indexing. -
excludeClassifiers
Comma Separated list of Classifiers to exclude when indexing. -
includeClassifiers
Comma Separated list of Classifiers to include when indexing. -
excludeTypes
Comma Separated list of Types to exclude when indexing. -
includeTypes
Comma Separated list of Types to include when indexing. -
excludeScope
Scope to exclude. Empty string indicates no scopes (default). -
includeScope
Scope to include. Empty string indicates all scopes (default). -
excludeTransitive
@Parameter(property="excludeTransitive", defaultValue="false") protected boolean excludeTransitiveIf we should exclude transitive dependencies when indexing. -
buildContext
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContextFor m2e incremental build support
-
-
Constructor Details
-
IndexMojo
public IndexMojo() -
IndexMojo
public IndexMojo(org.sonatype.plexus.build.incremental.BuildContext buildContext)
-
-
Method Details
-
setProject
public void setProject(org.apache.maven.project.MavenProject project) -
setOutputDirectory
-
execute
public void execute()
-