* 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")
* 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
* 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
* FileTypes
*
* @version $Id$
- * <p/>
- * plexus.component role="org.apache.maven.archiva.configuration.FileTypes"
*/
@Service( "fileTypes" )
public class FileTypes
* 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")
* 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")
* 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")
* 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" )
/**
* 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" )
* 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")
* DefaultLegacyRepositoryConverter
*
* @version $Id$
- * plexus.component
*/
@Service( "legacyRepositoryConverter#default" )
public class DefaultLegacyRepositoryConverter
* 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" )
* {@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
* 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
/**
* 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
/**
* 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
* {@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
* {@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
* @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
* MockConfiguration
*
* @version $Id$
- * <p/>
- * plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
- * role-hint="mock"
*/
@Service( "archivaConfiguration#mock" )
public class MockConfiguration
* RepositoryContentRequest
*
* @version $Id$
- * <p/>
- * plexus.component
- * role="org.apache.maven.archiva.repository.RepositoryContentFactory"
*/
@Service( "repositoryContentFactory#default" )
public class RepositoryContentFactory
* ManagedDefaultRepositoryContent
*
* @version $Id$
- *
- * plexus.component
- * role="org.apache.maven.archiva.repository.ManagedRepositoryContent"
- * role-hint="default"
- * instantiation-strategy="per-lookup"
*/
@Service("managedRepositoryContent#default")
@Scope("prototype")
* @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")
* 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" )
*
* @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" )
* MetadataTools
*
* @version $Id$
- * <p/>
- * plexus.component role="org.apache.maven.archiva.repository.metadata.MetadataTools"
*/
@Service( "metadataTools#default" )
public class MetadataTools
* MockConfiguration
*
* @version $Id$
- *
- * plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
- * role-hint="mock"
*/
@Service("archivaConfiguration#mock")
public class MockConfiguration
* DefaultRepositoryScanner
*
* @version $Id$
- * plexus.component role="org.apache.archiva.repository.scanner.RepositoryScanner"
*/
@Service("repositoryScanner#default")
public class DefaultRepositoryScanner
* SampleKnownConsumer
*
* @version $Id$
- *
- * plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer"
- * role-hint="sample-known"
*/
public class SampleKnownConsumer
extends AbstractMonitoredConsumer
* 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
* 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
* ArchivaRepositoryScanningTaskExecutor
*
* @version $Id$
- * plexus.component role="org.codehaus.plexus.taskqueue.execution.TaskExecutor"
- * role-hint="repository-scanning"
*/
@Service("taskExecutor#repository-scanning")
public class ArchivaRepositoryScanningTaskExecutor
/**
* 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
/**
* Generates RSS feeds.
- *
- * plexus.component role="org.apache.archiva.rss.RssFeedGenerator"
- * instantiation-strategy="per-lookup"
- *
- * @version
+ *
*/
@Service("rssFeedGenerator#default")
@Scope("prototype")
* 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
* 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
import org.springframework.stereotype.Service;
/**
- * @version
- * plexus.component role="org.apache.archiva.security.ServletAuthenticator" role-hint="default"
+ *
*/
@Service("servletAuthenticator")
public class ArchivaServletAuthenticator
* 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
* DefaultUserRepositories
*
* @version $Id$
- * plexus.component role="org.apache.archiva.security.UserRepositories" role-hint="default"
*/
@Service( "userRepositories" )
public class DefaultUserRepositories
import java.util.List;
/**
- * plexus.component role="org.apache.maven.archiva.webdav.ArchivaDavResourceFactory"
+ *
*/
@Service( "davResourceFactory#archiva" )
public class ArchivaDavResourceFactory
* 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
* 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
* 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
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
* AuditLog - Audit Log.
*
* @version $Id$
- * @plexus.component role="org.apache.archiva.audit.AuditListener" role-hint="logging"
+ *
*/
@Service("auditListener#logging")
public class AuditLog
import java.util.TimeZone;
/**
- * @plexus.component role="org.apache.archiva.audit.AuditManager"
+ *
*/
@Service("auditManager#default")
public class DefaultAuditManager
import javax.inject.Inject;
/**
- * plexus.component role="org.apache.archiva.audit.AuditListener" role-hint="metadata"
+ *
*/
@Service("uuditListener#metadata")
public class MetadataAuditListener
</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>
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
{
* 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
import java.util.Map;
/**
- * plexus.component role="org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider" role-hint="default"
+ *
*/
@Service( "artifactMappingProvider#default" )
public class DefaultArtifactMappingProvider
/**
* 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
import java.util.regex.Pattern;
/**
- * plexus.component role="org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator" role-hint="maven2"
+ *
*/
@Service( "repositoryPathTranslator#maven2" )
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
* 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
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
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
import java.util.Map;
/**
- * plexus.component role="org.apache.archiva.metadata.repository.RepositorySessionFactory" role-hint="file"
+ *
*/
@Service( "repositorySessionFactory#file" )
public class FileRepositorySessionFactory
import java.util.Map;
/**
- * plexus.component role="org.apache.archiva.metadata.repository.RepositorySessionFactory" role-hint="jcr"
+ *
*/
@Service( "repositorySessionFactory#jcr" )
public class JcrRepositorySessionFactory
<groupId>org.apache.archiva</groupId>
<artifactId>maven2-repository</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ </dependency>
</dependencies>
</project>
*/
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
{
/**
* 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
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
* 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" )
import javax.jcr.query.Row;
/**
- * plexus.component role="org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager" role-hint="default"
+ *
*/
@Service("repositoryStatisticsManager#default")
public class DefaultRepositoryStatisticsManager
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
import javax.inject.Named;
/**
- * plexus.component role="org.apache.archiva.stagerepository.merge.RepositoryMerger" role-hint="maven2"
+ *
*/
@Service( "repositoryMerger#maven2" )
public class Maven2RepositoryMerger