private RepositoryDAO repositoryDAO;
/**
- * The collection of available consumers.
+ * The collection of available database consumers.
* @plexus.requirement role="org.apache.maven.archiva.consumers.ArchivaArtifactConsumer"
*/
- private Map availableConsumers;
+ private Map availableDBConsumers;
+
+ /**
+ * The collection of available repository consumers.
+ * @plexus.requirement role="org.apache.maven.archiva.consumers.RepositoryContentConsumer"
+ */
+ private Map availableRepositoryConsumers;
+
public void executeTask( Task task ) throws TaskExecutionException
{
{
String consumer = (String)i.next();
- if ( availableConsumers.containsKey( availableConsumers.get( consumer ) ) )
+ if ( availableRepositoryConsumers.containsKey( availableRepositoryConsumers.get( consumer ) ) )
{
- activeConsumers.add( availableConsumers.get( consumer ) );
+ activeConsumers.add( availableRepositoryConsumers.get( consumer ) );
}
else
{
{
String consumer = (String)i.next();
- if ( availableConsumers.containsKey( availableConsumers.get( consumer ) ) )
+ if ( availableRepositoryConsumers.containsKey( availableRepositoryConsumers.get( consumer ) ) )
{
getLogger().warn( "Using consumer " + consumer );
- activeConsumers.add( availableConsumers.get( consumer ) );
+ activeConsumers.add( availableRepositoryConsumers.get( consumer ) );
}
else
{
<role-hint>jdo</role-hint>
<field-name>repositoryDAO</field-name>
</requirement>
- <requirement>
+ <requirement>
<role>org.apache.maven.archiva.consumers.ArchivaArtifactConsumer</role>
- <field-name>availableConsumers</field-name>
+ <field-name>availableDBConsumers</field-name>
+ </requirement>
+ <requirement>
+ <role>org.apache.maven.archiva.consumers.RepositoryContentConsumer</role>
+ <field-name>availableRepositoryConsumers</field-name>
</requirement>
</requirements>
</component>