
org.jboss.windup.maven.nexusindexer.LuceneIndexArtifactVisitor Maven / Gradle / Ivy
The newest version!
package org.jboss.windup.maven.nexusindexer;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.logging.Logger;
import org.apache.commons.io.FileUtils;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.StringField;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.store.SimpleFSDirectory;
import org.apache.lucene.util.Version;
import org.apache.maven.index.ArtifactInfo;
/**
* For each visited archive, this creates a Lucene document with these fields:
* sha1 groupId artifactId packaging classifier version
*
* @author Ondrej Zizka, [email protected]
*/
public class LuceneIndexArtifactVisitor implements RepositoryIndexManager.ArtifactVisitor
© 2015 - 2025 Weber Informatics LLC | Privacy Policy