diff --git a/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/legacy/LegacyConverterArtifactConsumer.java b/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/legacy/LegacyConverterArtifactConsumer.java index ff15d3b1f..dc1b08126 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/legacy/LegacyConverterArtifactConsumer.java +++ b/archiva-modules/archiva-base/archiva-converter/src/main/java/org/apache/archiva/converter/legacy/LegacyConverterArtifactConsumer.java @@ -40,6 +40,7 @@ import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; import javax.inject.Inject; +import javax.inject.Named; import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -59,6 +60,7 @@ public class LegacyConverterArtifactConsumer private Logger log = LoggerFactory.getLogger( LegacyConverterArtifactConsumer.class ); @Inject + @Named("artifactConverter#legacy-to-default") private ArtifactConverter artifactConverter; private ArtifactFactory artifactFactory; diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-snapshot.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-snapshot.pom index 1615b6663..f03b5a53f 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-snapshot.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-snapshot.pom @@ -1,4 +1,5 @@ - + 4.0.0 test v3artifact diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-timestamped-snapshot.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-timestamped-snapshot.pom index 94307d863..1c56340b0 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-timestamped-snapshot.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-timestamped-snapshot.pom @@ -1,4 +1,5 @@ - + 4.0.0 test v3artifact diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-warnings.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-warnings.pom index 25f4e76d0..bdd22765f 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-warnings.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3-warnings.pom @@ -1,4 +1,5 @@ - + 4.0.0 test v3-warnings-artifact diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3.pom index 9f8b63e16..df4700c04 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/converted-v3.pom @@ -1,4 +1,5 @@ - + 4.0.0 test v3artifact diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom index 0180549f0..3f5df2267 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom @@ -1,4 +1,5 @@ - + 4.0.0 relocated-test relocated-v3artifact diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom index b20f62f9e..4efefb741 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom +++ b/archiva-modules/archiva-base/archiva-converter/src/test/expected-files/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom @@ -1,4 +1,5 @@ - + test relocated-v3artifact 1.0.0 diff --git a/archiva-modules/archiva-base/archiva-converter/src/test/resources/spring-context.xml b/archiva-modules/archiva-base/archiva-converter/src/test/resources/spring-context.xml index b679284d8..69187cb7c 100644 --- a/archiva-modules/archiva-base/archiva-converter/src/test/resources/spring-context.xml +++ b/archiva-modules/archiva-base/archiva-converter/src/test/resources/spring-context.xml @@ -20,12 +20,18 @@ --> + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + + + + + + + + + +