import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
import org.apache.maven.archiva.configuration.Configuration;
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
+import org.apache.maven.archiva.web.action.admin.SchedulerAction;
import java.util.List;
import java.util.ArrayList;
*/
private MetadataRepository metadataRepository;
+ /**
+ * @plexus.requirement role="com.opensymphony.xwork2.Action" role-hint="schedulerAction"
+ */
+ private SchedulerAction scheduler;
+
private ManagedRepositoryConfiguration repository;
private String repoid;
{
List<ArtifactMetadata> sourceArtifacts = metadataRepository.getArtifacts( sourceRepoId );
repositoryMerger.merge( sourceRepoId, repoid );
- triggerAuditEvent( sourceRepoId, "file-eshan", AuditEvent.MERGING_REPOSITORIES );
+ scheduler.scanRepository();
for ( ArtifactMetadata metadata : sourceArtifacts )
{
Filter<ArtifactMetadata> artifactsWithOutConflicts =
new IncludesFilter<ArtifactMetadata>( sourceArtifacts );
repositoryMerger.merge( sourceRepoId, repoid, artifactsWithOutConflicts );
+ scheduler.scanRepository();
for ( ArtifactMetadata metadata : sourceArtifacts )
{
{
sourceRepoId = repoid + "-stage";
conflictSourceArtifacts = repositoryMerger.getConflictsartifacts( sourceRepoId, repoid );
+ this.scheduler.setRepoid( repoid );
this.repository = new ManagedRepositoryConfiguration();
setConflictSourceArtifactsToBeDisplayed( conflictSourceArtifacts );
}