Package org.apache.maven.index
Class ArtifactContext
java.lang.Object
org.apache.maven.index.ArtifactContext
An artifact context used to provide information about artifact during scanning. It is passed to the
 
IndexCreator, which can populate ArtifactInfo for the given artifact.- Author:
- Jason van Zyl, Tamas Cservenak
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionArtifactContext(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidorg.apache.lucene.document.DocumentcreateDocument(IndexingContext context) Creates Lucene Document usingIndexCreators from the givenIndexingContext.getGav()getPom()org.apache.maven.model.Model
- 
Constructor Details- 
ArtifactContextpublic ArtifactContext(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
 
- 
- 
Method Details- 
getPom
- 
getPomModelpublic org.apache.maven.model.Model getPomModel()
- 
getArtifact
- 
getMetadata
- 
getArtifactInfo
- 
getGav
- 
getErrors
- 
addError
- 
createDocumentCreates Lucene Document usingIndexCreators from the givenIndexingContext.
 
-