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 Summary
ConstructorDescriptionArtifactContext
(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.lucene.document.Document
createDocument
(IndexingContext context) Creates Lucene Document usingIndexCreator
s from the givenIndexingContext
.getGav()
getPom()
org.apache.maven.model.Model
-
Constructor Details
-
ArtifactContext
public ArtifactContext(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getPom
-
getPomModel
public org.apache.maven.model.Model getPomModel() -
getArtifact
-
getMetadata
-
getArtifactInfo
-
getGav
-
getErrors
-
addError
-
createDocument
Creates Lucene Document usingIndexCreator
s from the givenIndexingContext
.
-