From f0c6ee5a718f8d0f19bf9efc0f390c5b5e46dc1b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 6 Sep 2011 07:26:05 +0000 Subject: get RID of plexus.component annotation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1165527 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-modules/plugins/npanday-support/pom.xml | 4 ++++ .../archiva/plugins/npanday/NPandayArtifactMappingProvider.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'archiva-modules/plugins/npanday-support') diff --git a/archiva-modules/plugins/npanday-support/pom.xml b/archiva-modules/plugins/npanday-support/pom.xml index 9b1108485..779286197 100644 --- a/archiva-modules/plugins/npanday-support/pom.xml +++ b/archiva-modules/plugins/npanday-support/pom.xml @@ -33,5 +33,9 @@ org.apache.archiva maven2-repository + + org.springframework + spring-context + diff --git a/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java b/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java index 800ec7c59..fa6ad0cb5 100644 --- a/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java +++ b/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java @@ -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 { -- cgit v1.2.3