Package org.apache.maven.index.creator
Class MavenArchetypeArtifactInfoIndexCreator
java.lang.Object
org.apache.maven.index.creator.AbstractIndexCreator
org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator
- All Implemented Interfaces:
IndexCreator
@Singleton
@Named("maven-archetype")
public class MavenArchetypeArtifactInfoIndexCreator
extends AbstractIndexCreator
A Maven Archetype index creator used to detect and correct the artifact packaging to "maven-archetype" if the
inspected JAR is an Archetype. Since packaging is already handled by Minimal creator, this Creator only alters the
supplied ArtifactInfo packaging field during processing, but does not interferes with Lucene document fill-up or the
ArtifactInfo fill-up (the update* methods are empty).
- Author:
- cstamas
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.void
Populate anArtifactContext
with information about corresponding artifact.toString()
boolean
updateArtifactInfo
(org.apache.lucene.document.Document doc, ArtifactInfo ai) Update anArtifactInfo
from given LuceneDocument
.void
updateDocument
(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update LuceneDocument
from a givenArtifactInfo
.Methods inherited from class org.apache.maven.index.creator.AbstractIndexCreator
bos, getCreatorDependencies, getId, getLogger, sob
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
MavenArchetypeArtifactInfoIndexCreator
public MavenArchetypeArtifactInfoIndexCreator()
-
-
Method Details
-
populateArtifactInfo
Description copied from interface:IndexCreator
Populate anArtifactContext
with information about corresponding artifact. -
updateDocument
Description copied from interface:IndexCreator
Update LuceneDocument
from a givenArtifactInfo
. -
updateArtifactInfo
Description copied from interface:IndexCreator
Update anArtifactInfo
from given LuceneDocument
.- Returns:
- true is artifact info has been updated
-
toString
-
getIndexerFields
Description copied from interface:IndexCreator
Returns the indexer fields that this IndexCreator introduces to index.- Returns:
-