Event that triggers at the beginning of a scan.
NOTE: This would be a good place to initialize the consumer, to lock any resources, and to generally start tracking the scan as a whole.
142143144145146147148149150151152
throws Exception { List<ArchivaArtifact> artifacts = dao.getArtifactDAO().queryArtifacts( null ); ArchivaArtifactConsumer consumer = (ArchivaArtifactConsumer) lookup( ArchivaArtifactConsumer.class.getName(), "duplicate-artifacts" ); consumer.beginScan(); try { for ( ArchivaArtifact artifact : artifacts ) { consumer.processArchivaArtifact( artifact );