mirror of https://github.com/apache/archiva.git
get RID of plexus.component annotation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1165527 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7e35594e29
commit
f0c6ee5a71
|
@ -30,9 +30,6 @@ import java.util.List;
|
|||
* ArtifactCountConsumer
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="count-artifacts"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("knownRepositoryContentConsumer#count-artifacts")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -68,8 +68,6 @@ import java.util.regex.Matcher;
|
|||
* LegacyToDefaultConverter
|
||||
*
|
||||
* @version $Id$
|
||||
* @plexus.component role="org.apache.maven.archiva.converter.artifact.ArtifactConverter"
|
||||
* role-hint="legacy-to-default"
|
||||
*/
|
||||
@Service( "artifactConverter#legacy-to-default" )
|
||||
public class LegacyToDefaultConverter
|
||||
|
|
|
@ -85,8 +85,6 @@ import java.util.Set;
|
|||
* If the configuration is outdated, it will be upgraded when it is loaded. This is done by checking the version flag
|
||||
* before reading it from the registry.
|
||||
* </p>
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
|
||||
*/
|
||||
@Service( "archivaConfiguration#default" )
|
||||
public class DefaultArchivaConfiguration
|
||||
|
|
|
@ -46,8 +46,6 @@ import java.util.Map;
|
|||
* FileTypes
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.configuration.FileTypes"
|
||||
*/
|
||||
@Service( "fileTypes" )
|
||||
public class FileTypes
|
||||
|
|
|
@ -44,9 +44,6 @@ import java.util.List;
|
|||
* AutoRemoveConsumer
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="auto-remove"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("knownRepositoryContentConsumer#auto-remove")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -40,9 +40,6 @@ import java.util.Map;
|
|||
* AutoRenameConsumer
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="auto-rename"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("knownRepositoryContentConsumer#auto-rename")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -57,9 +57,6 @@ import javax.inject.Inject;
|
|||
* MetadataUpdaterConsumer will create and update the metadata present within the repository.
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="metadata-updater"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("knownRepositoryContentConsumer#metadata-updater")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -46,9 +46,6 @@ import java.util.List;
|
|||
* ValidateChecksumConsumer - validate the provided checksum against the file it represents.
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="validate-checksum"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "knownRepositoryContentConsumer#validate-checksum" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -51,10 +51,6 @@ import java.util.List;
|
|||
/**
|
||||
* Consumer for removing old snapshots in the repository based on the criteria
|
||||
* specified by the user.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="repository-purge"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "knownRepositoryContentConsumer#repository-purge" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -55,8 +55,6 @@ import java.util.List;
|
|||
* Take an artifact off of disk and put it into the metadata repository.
|
||||
*
|
||||
* @version $Id: ArtifactUpdateDatabaseConsumer.java 718864 2008-11-19 06:33:35Z brett $
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="create-archiva-metadata" instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("knownRepositoryContentConsumer#create-archiva-metadata")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -45,7 +45,6 @@ import java.util.List;
|
|||
* DefaultLegacyRepositoryConverter
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component
|
||||
*/
|
||||
@Service( "legacyRepositoryConverter#default" )
|
||||
public class DefaultLegacyRepositoryConverter
|
||||
|
|
|
@ -49,10 +49,6 @@ import java.util.List;
|
|||
* into the destination repository.
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="artifact-legacy-to-default-converter"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "knownRepositoryContentConsumer#artifact-legacy-to-default-converter" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -36,8 +36,6 @@ import javax.inject.Inject;
|
|||
* {@link PreDownloadPolicy} to check if the requested url has failed before.
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.policies.PreDownloadPolicy"
|
||||
* role-hint="cache-failures"
|
||||
*/
|
||||
@Service("preDownloadPolicy#cache-failures")
|
||||
public class CachedFailuresPolicy
|
||||
|
|
|
@ -36,9 +36,6 @@ import org.springframework.stereotype.Service;
|
|||
* successfully and completely (or not).
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.policies.PostDownloadPolicy"
|
||||
* role-hint="checksum"
|
||||
*/
|
||||
@Service("postDownloadPolicy#checksum")
|
||||
public class ChecksumPolicy
|
||||
|
|
|
@ -32,9 +32,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
/**
|
||||
* PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.policies.DownloadErrorPolicy"
|
||||
* role-hint="propagate-errors"
|
||||
*/
|
||||
@Service("downloadErrorPolicy#propagate-errors")
|
||||
public class PropagateErrorsDownloadPolicy
|
||||
|
|
|
@ -30,9 +30,6 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
/**
|
||||
* PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.policies.DownloadErrorPolicy"
|
||||
* role-hint="propagate-errors-on-update"
|
||||
*/
|
||||
@Service("downloadErrorPolicy#propagate-errors-on-update")
|
||||
public class PropagateErrorsOnUpdateDownloadPolicy
|
||||
|
|
|
@ -26,9 +26,6 @@ import org.springframework.stereotype.Service;
|
|||
* {@link PreDownloadPolicy} to apply for released versions.
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.policies.PreDownloadPolicy"
|
||||
* role-hint="releases"
|
||||
*/
|
||||
@Service("preDownloadPolicy#releases")
|
||||
public class ReleasesPolicy
|
||||
|
|
|
@ -26,9 +26,6 @@ import org.springframework.stereotype.Service;
|
|||
* {@link PreDownloadPolicy} to apply for snapshot versions.
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.policies.PreDownloadPolicy"
|
||||
* role-hint="snapshots"
|
||||
*/
|
||||
@Service("preDownloadPolicy#snapshots")
|
||||
public class SnapshotsPolicy
|
||||
|
|
|
@ -87,7 +87,6 @@ import java.util.Properties;
|
|||
* @version $Id$
|
||||
* @todo exception handling needs work - "not modified" is not really an exceptional case, and it has more layers than
|
||||
* your average brown onion
|
||||
* plexus.component role-hint="default"
|
||||
*/
|
||||
@Service( "repositoryProxyConnectors#default" )
|
||||
public class DefaultRepositoryProxyConnectors
|
||||
|
|
|
@ -41,9 +41,6 @@ import javax.annotation.PostConstruct;
|
|||
* MockConfiguration
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
|
||||
* role-hint="mock"
|
||||
*/
|
||||
@Service( "archivaConfiguration#mock" )
|
||||
public class MockConfiguration
|
||||
|
|
|
@ -37,9 +37,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
* RepositoryContentRequest
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component
|
||||
* role="org.apache.maven.archiva.repository.RepositoryContentFactory"
|
||||
*/
|
||||
@Service( "repositoryContentFactory#default" )
|
||||
public class RepositoryContentFactory
|
||||
|
|
|
@ -46,11 +46,6 @@ import java.util.Set;
|
|||
* ManagedDefaultRepositoryContent
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component
|
||||
* role="org.apache.maven.archiva.repository.ManagedRepositoryContent"
|
||||
* role-hint="default"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("managedRepositoryContent#default")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -45,11 +45,6 @@ import java.util.Set;
|
|||
* @version $Id$
|
||||
*
|
||||
* @todo no need to be a component when filetypes, legacy path parser is not
|
||||
*
|
||||
* plexus.component
|
||||
* role="org.apache.maven.archiva.repository.ManagedRepositoryContent"
|
||||
* role-hint="legacy"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service("managedRepositoryContent#legacy")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -31,11 +31,6 @@ import org.springframework.stereotype.Service;
|
|||
* RemoteDefaultRepositoryContent
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component
|
||||
* role="org.apache.maven.archiva.repository.RemoteRepositoryContent"
|
||||
* role-hint="default"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "remoteRepositoryContent#default" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -32,9 +32,6 @@ import org.springframework.stereotype.Service;
|
|||
*
|
||||
* @version $Id$
|
||||
* @todo no need to be a component once legacy path parser is not
|
||||
* plexus.component role="org.apache.maven.archiva.repository.RemoteRepositoryContent"
|
||||
* role-hint="legacy"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "remoteRepositoryContent#legacy" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -74,8 +74,6 @@ import java.util.regex.Matcher;
|
|||
* MetadataTools
|
||||
*
|
||||
* @version $Id$
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.maven.archiva.repository.metadata.MetadataTools"
|
||||
*/
|
||||
@Service( "metadataTools#default" )
|
||||
public class MetadataTools
|
||||
|
|
|
@ -35,9 +35,6 @@ import java.util.Set;
|
|||
* MockConfiguration
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
|
||||
* role-hint="mock"
|
||||
*/
|
||||
@Service("archivaConfiguration#mock")
|
||||
public class MockConfiguration
|
||||
|
|
|
@ -39,7 +39,6 @@ import javax.inject.Inject;
|
|||
* DefaultRepositoryScanner
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.archiva.repository.scanner.RepositoryScanner"
|
||||
*/
|
||||
@Service("repositoryScanner#default")
|
||||
public class DefaultRepositoryScanner
|
||||
|
|
|
@ -31,9 +31,6 @@ import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer;
|
|||
* SampleKnownConsumer
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="sample-known"
|
||||
*/
|
||||
public class SampleKnownConsumer
|
||||
extends AbstractMonitoredConsumer
|
||||
|
|
|
@ -57,9 +57,7 @@ import java.util.List;
|
|||
* ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are
|
||||
* all performed by this executor. Add and update artifact in index tasks are added in the indexing task queue by the
|
||||
* NexusIndexerConsumer while remove artifact from index tasks are added by the LuceneCleanupRemoveIndexedConsumer.
|
||||
* <p/>
|
||||
* plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor" role-hint="indexing"
|
||||
* instantiation-strategy="singleton"
|
||||
*
|
||||
*/
|
||||
@Service( "taskExecutor#indexing" )
|
||||
public class ArchivaIndexingTaskExecutor
|
||||
|
|
|
@ -33,7 +33,6 @@ import javax.inject.Named;
|
|||
* Default implementation of a scheduling component for archiva.
|
||||
*
|
||||
* @todo TODO - consider just folding in, not really scheduled
|
||||
* @plexus.component role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="indexing"
|
||||
*/
|
||||
@Service("archivaTaskScheduler#indexing")
|
||||
public class IndexingArchivaTaskScheduler
|
||||
|
|
|
@ -51,8 +51,6 @@ import java.util.Date;
|
|||
* ArchivaRepositoryScanningTaskExecutor
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
|
||||
* role-hint="repository-scanning"
|
||||
*/
|
||||
@Service("taskExecutor#repository-scanning")
|
||||
public class ArchivaRepositoryScanningTaskExecutor
|
||||
|
|
|
@ -56,8 +56,6 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* Default implementation of a scheduling component for archiva.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
|
||||
*/
|
||||
@Service( "archivaTaskScheduler#repository" )
|
||||
public class RepositoryArchivaTaskScheduler
|
||||
|
|
|
@ -36,11 +36,7 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
/**
|
||||
* Generates RSS feeds.
|
||||
*
|
||||
* plexus.component role="org.apache.archiva.rss.RssFeedGenerator"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*
|
||||
* @version
|
||||
*
|
||||
*/
|
||||
@Service("rssFeedGenerator#default")
|
||||
@Scope("prototype")
|
||||
|
|
|
@ -43,7 +43,6 @@ import java.util.TimeZone;
|
|||
* The artifacts will be grouped by the date when the artifacts were gathered.
|
||||
* Each group will appear as one entry in the feed.
|
||||
*
|
||||
* plexus.component role="org.apache.archiva.rss.processor.RssFeedProcessor" role-hint="new-artifacts"
|
||||
*/
|
||||
@Service("rssFeedProcessor#new-artifacts")
|
||||
public class NewArtifactsRssFeedProcessor
|
||||
|
|
|
@ -43,7 +43,6 @@ import java.util.Map;
|
|||
* generate a rss feed. The versions will be grouped by the date when the artifact
|
||||
* was gathered. Each group will appear as one entry in the feed.
|
||||
*
|
||||
* plexus.component role="org.apache.archiva.rss.processor.RssFeedProcessor" role-hint="new-versions"
|
||||
*/
|
||||
@Service("rssFeedProcessor#new-versions")
|
||||
public class NewVersionsOfArtifactRssFeedProcessor
|
||||
|
|
|
@ -39,8 +39,7 @@ import org.slf4j.LoggerFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @version
|
||||
* plexus.component role="org.apache.archiva.security.ServletAuthenticator" role-hint="default"
|
||||
*
|
||||
*/
|
||||
@Service("servletAuthenticator")
|
||||
public class ArchivaServletAuthenticator
|
||||
|
|
|
@ -34,9 +34,6 @@ import javax.inject.Named;
|
|||
* ArchivaStandardRolesCheck tests for the existance of expected / standard roles and permissions.
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component role="org.codehaus.plexus.redback.system.check.EnvironmentCheck"
|
||||
* role-hint="required-roles"
|
||||
*/
|
||||
@Service("environmentCheck#archiva-required-roles")
|
||||
public class ArchivaStandardRolesCheck
|
||||
|
|
|
@ -43,7 +43,6 @@ import java.util.List;
|
|||
* DefaultUserRepositories
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.archiva.security.UserRepositories" role-hint="default"
|
||||
*/
|
||||
@Service( "userRepositories" )
|
||||
public class DefaultUserRepositories
|
||||
|
|
|
@ -95,7 +95,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.maven.archiva.webdav.ArchivaDavResourceFactory"
|
||||
*
|
||||
*/
|
||||
@Service( "davResourceFactory#archiva" )
|
||||
public class ArchivaDavResourceFactory
|
||||
|
|
|
@ -42,8 +42,7 @@ import java.util.StringTokenizer;
|
|||
* MimeTypes
|
||||
*
|
||||
* @version $Id: MimeTypes.java 7010 2007-10-25 23:35:02Z joakime $
|
||||
*
|
||||
* plexus.component role="org.apache.maven.archiva.webdav.util.MimeTypes"
|
||||
*
|
||||
*/
|
||||
@Service("mimeTpes")
|
||||
public class MimeTypes
|
||||
|
|
|
@ -43,9 +43,6 @@ import org.springframework.stereotype.Service;
|
|||
* for every request to respond as success / true.
|
||||
*
|
||||
* @version $Id$
|
||||
*
|
||||
* plexus.component
|
||||
* role="org.codehaus.plexus.redback.system.SecuritySystem"
|
||||
*/
|
||||
@Service("securitySystem#bypass")
|
||||
public class BypassSecuritySystem
|
||||
|
|
|
@ -56,7 +56,6 @@ import java.util.List;
|
|||
* having a bi-directional link with the session factory, and saving the existing session might save other changes
|
||||
* unknowingly by the caller.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.MetadataResolver"
|
||||
*/
|
||||
@Service( "metadataResolver#default" )
|
||||
public class DefaultMetadataResolver
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.audit"
|
||||
*
|
||||
*/
|
||||
@Service("metadataFacetFactory#org.apache.archiva.audit")
|
||||
public class AuditEventFactory
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.springframework.stereotype.Service;
|
|||
* AuditLog - Audit Log.
|
||||
*
|
||||
* @version $Id$
|
||||
* @plexus.component role="org.apache.archiva.audit.AuditListener" role-hint="logging"
|
||||
*
|
||||
*/
|
||||
@Service("auditListener#logging")
|
||||
public class AuditLog
|
||||
|
|
|
@ -36,7 +36,7 @@ import java.util.List;
|
|||
import java.util.TimeZone;
|
||||
|
||||
/**
|
||||
* @plexus.component role="org.apache.archiva.audit.AuditManager"
|
||||
*
|
||||
*/
|
||||
@Service("auditManager#default")
|
||||
public class DefaultAuditManager
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.stereotype.Service;
|
|||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.audit.AuditListener" role-hint="metadata"
|
||||
*
|
||||
*/
|
||||
@Service("uuditListener#metadata")
|
||||
public class MetadataAuditListener
|
||||
|
|
|
@ -27,16 +27,18 @@
|
|||
</parent>
|
||||
<artifactId>generic-metadata-support</artifactId>
|
||||
<name>Archiva Core Plugins :: Generic Metadata Support</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.archiva</groupId>
|
||||
<artifactId>metadata-model</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -21,11 +21,11 @@ package org.apache.archiva.metadata.generic;
|
|||
|
||||
import org.apache.archiva.metadata.model.MetadataFacet;
|
||||
import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory"
|
||||
* role-hint="org.apache.archiva.metadata.generic"
|
||||
*/
|
||||
@Service("metadataFacetFactory#org.apache.archiva.metadata.generic")
|
||||
public class GenericMetadataFacetFactory
|
||||
implements MetadataFacetFactory
|
||||
{
|
||||
|
|
|
@ -94,8 +94,6 @@ import javax.inject.Named;
|
|||
* Default implementation of <code>DependencyTreeBuilder</code>. Customized wrapper for maven-dependency-tree to use
|
||||
* maven-model-builder instead of maven-project. Note that the role must differ to avoid conflicting with the
|
||||
* maven-shared implementation.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.archiva.dependency.tree.maven2.DependencyTreeBuilder" role-hint="maven2"
|
||||
*/
|
||||
@Service( "dependencyTreeBuilder#maven2" )
|
||||
public class DefaultDependencyTreeBuilder
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider" role-hint="default"
|
||||
*
|
||||
*/
|
||||
@Service( "artifactMappingProvider#default" )
|
||||
public class DefaultArtifactMappingProvider
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.maven.model.plugin.LifecycleBindingsInjector;
|
|||
/**
|
||||
* Required as plexus-spring doesn't understand the optional = true argument added to Plexus and used here.
|
||||
*
|
||||
* @plexus.component role="org.apache.maven.model.plugin.LifecycleBindingsInjector"
|
||||
*
|
||||
*/
|
||||
public class DummyLifecycleBindingsInjector
|
||||
implements LifecycleBindingsInjector
|
||||
|
|
|
@ -34,7 +34,7 @@ import java.util.regex.Matcher;
|
|||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator" role-hint="maven2"
|
||||
*
|
||||
*/
|
||||
@Service( "repositoryPathTranslator#maven2" )
|
||||
public class Maven2RepositoryPathTranslator
|
||||
|
@ -46,11 +46,8 @@ public class Maven2RepositoryPathTranslator
|
|||
|
||||
private static final Pattern TIMESTAMP_PATTERN = Pattern.compile( "([0-9]{8}.[0-9]{6})-([0-9]+).*" );
|
||||
|
||||
//@Inject
|
||||
//private ApplicationContext applicationContext;
|
||||
|
||||
/**
|
||||
* plexus.requirement role="org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider"
|
||||
*
|
||||
* see #initialize
|
||||
*/
|
||||
@Inject
|
||||
|
|
|
@ -82,7 +82,6 @@ import javax.inject.Named;
|
|||
* The session is passed in as an argument to obtain any necessary resources, rather than the class being instantiated
|
||||
* within the session in the context of a single managed repository's resolution needs.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.storage.RepositoryStorage" role-hint="maven2"
|
||||
*/
|
||||
@Service( "repositoryStorage#maven2" )
|
||||
public class Maven2RepositoryStorage
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.repository.storage.maven2.artifact"
|
||||
*
|
||||
*/
|
||||
@Service("metadataFacetFactory#org.apache.archiva.metadata.repository.storage.maven2.artifact")
|
||||
public class MavenArtifactFacetFactory
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.repository.storage.maven2.project"
|
||||
*
|
||||
*/
|
||||
@Service( "metadataFacetFactory#org.apache.archiva.metadata.repository.storage.maven2.project" )
|
||||
public class MavenProjectFacetFactory
|
||||
|
|
|
@ -36,7 +36,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.RepositorySessionFactory" role-hint="file"
|
||||
*
|
||||
*/
|
||||
@Service( "repositorySessionFactory#file" )
|
||||
public class FileRepositorySessionFactory
|
||||
|
|
|
@ -36,7 +36,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.RepositorySessionFactory" role-hint="jcr"
|
||||
*
|
||||
*/
|
||||
@Service( "repositorySessionFactory#jcr" )
|
||||
public class JcrRepositorySessionFactory
|
||||
|
|
|
@ -33,5 +33,9 @@
|
|||
<groupId>org.apache.archiva</groupId>
|
||||
<artifactId>maven2-repository</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -20,13 +20,14 @@ package org.apache.archiva.plugins.npanday;
|
|||
*/
|
||||
|
||||
import org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @plexus.component role="org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider" role-hint="npanday"
|
||||
*/
|
||||
@Service( "artifactMappingProvider#npanday" )
|
||||
public class NPandayArtifactMappingProvider
|
||||
implements ArtifactMappingProvider
|
||||
{
|
||||
|
|
|
@ -31,8 +31,7 @@ import org.springframework.stereotype.Service;
|
|||
|
||||
/**
|
||||
* Process repository management events and respond appropriately.
|
||||
* <p/>
|
||||
* plexus.component role="org.apache.archiva.repository.events.RepositoryListener" role-hint="problem-reports"
|
||||
*
|
||||
*/
|
||||
@Service( "repositoryListener#problem-reports" )
|
||||
public class RepositoryProblemEventListener
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.reports"
|
||||
*
|
||||
*/
|
||||
@Service( "metadataFacetFactory#org.apache.archiva.reports" )
|
||||
public class RepositoryProblemFacetFactory
|
||||
|
|
|
@ -59,9 +59,6 @@ import java.util.List;
|
|||
* TODO: no need for this to be a scanner - we can just query the database / content repository to get a full list
|
||||
*
|
||||
* @version $Id$
|
||||
* plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
|
||||
* role-hint="duplicate-artifacts"
|
||||
* instantiation-strategy="per-lookup"
|
||||
*/
|
||||
@Service( "knownRepositoryContentConsumer#duplicate-artifacts" )
|
||||
@Scope( "prototype" )
|
||||
|
|
|
@ -48,7 +48,7 @@ import javax.jcr.query.QueryResult;
|
|||
import javax.jcr.query.Row;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager" role-hint="default"
|
||||
*
|
||||
*/
|
||||
@Service("repositoryStatisticsManager#default")
|
||||
public class DefaultRepositoryStatisticsManager
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.repository.stats"
|
||||
*
|
||||
*/
|
||||
@Service( "metadataFacetFactory#org.apache.archiva.metadata.repository.stats" )
|
||||
public class RepositoryStatisticsFactory
|
||||
|
|
|
@ -53,7 +53,7 @@ import javax.inject.Inject;
|
|||
import javax.inject.Named;
|
||||
|
||||
/**
|
||||
* plexus.component role="org.apache.archiva.stagerepository.merge.RepositoryMerger" role-hint="maven2"
|
||||
*
|
||||
*/
|
||||
@Service( "repositoryMerger#maven2" )
|
||||
public class Maven2RepositoryMerger
|
||||
|
|
Loading…
Reference in New Issue