@Override public void scan(final ArchivaIndexingContext context) throws IndexUpdateFailedException { executeUpdateFunction( context, indexingContext -> { DefaultScannerListener listener = new DefaultScannerListener( indexingContext, indexerEngine, true, null ); ScanningRequest request = new ScanningRequest( indexingContext, listener ); ScanningResult result = scanner.scan( request ); if ( result.hasExceptions( ) ) { log.error( "Exceptions occured during index scan of " + context.getId( ) ); result.getExceptions( ).stream( ).map( e -> e.getMessage( ) ).distinct( ).limit( 5 ).forEach( s -> log.error( "Message: " + s ) ); } } ); }
public void scanningStarted( IndexingContext ctx ) { try { if ( update ) { initialize( ctx ); } } catch ( IOException ex ) { exceptions.add( ex ); } if ( listener != null ) { listener.scanningStarted( ctx ); } }
artifactError( ac, e ); artifactError( ac, ex );
removeDeletedArtifacts( context, result, result.getRequest().getStartingPath() );
artifactError( ac, e ); artifactError( ac, ex );
removeDeletedArtifacts( context, result, result.getRequest().getStartingPath() );
final ArtifactScanningListener listener = new DefaultScannerListener( context, indexerEngine, false, null ); final ScanningRequest request = new ScanningRequest( context, listener ); final ScanningResult result = scanner.scan( request );
public void scanningStarted( IndexingContext ctx ) { try { if ( update ) { initialize( ctx ); } } catch ( IOException ex ) { exceptions.add( ex ); } if ( listener != null ) { listener.scanningStarted( ctx ); } }
artifactError( ac, e ); artifactError( ac, ex );
removeDeletedArtifacts( context, result, result.getRequest().getStartingPath() );
new DefaultScannerListener( tmpContext, indexerEngine, update, listener ), fromPath ) );
public void scanningStarted( IndexingContext ctx ) { try { if ( update ) { initialize( ctx ); } } catch ( IOException ex ) { exceptions.add( ex ); } if ( listener != null ) { listener.scanningStarted( ctx ); } }
new DefaultScannerListener( tmpContext, indexerEngine, update, listener ), fromPath ) );
new DefaultScannerListener( tmpContext, embedder.lookup(IndexerEngine.class), update, listener ), fromPath ) );
new DefaultScannerListener( tmpContext, indexerEngine, update, listener ), fromPath ) );
DefaultScannerListener listener = new DefaultScannerListener( context, indexerEngine, true, null ); ScanningRequest request = new ScanningRequest( context, listener ); ScanningResult result = scanner.scan( request );