File pom = new File(pomPath); if (pom.exists()) { indexer.addArtifactToIndex(contextProducer.getArtifactContext(indexingContext, pom), indexingContext);
File pom = new File(pomPath); if (pom.exists()) { indexer.deleteArtifactFromIndex(contextProducer.getArtifactContext(indexingContext, pom), indexingContext);
private void processFile( File file, ScanningRequest request ) { IndexingContext context = request.getIndexingContext(); try { ArtifactContext ac = artifactContextProducer.getArtifactContext( context, file ); if ( ac != null ) { request.getArtifactScanningListener().artifactDiscovered( ac ); } } catch ( IllegalArtifactCoordinateException e ) { getLogger().warn( "Failed to process file: '" + file.getAbsolutePath() + "' while scanning a maven 2 directory.", e ); } }
ArtifactContext ac = artifactContextProducer.getArtifactContext( context, artifactFile );
ac = artifactContextProducer.getArtifactContext( context, file );