diff --git a/maven-mercury/pom.xml b/maven-mercury/pom.xml index d59cfa0b56..7bf1d75e18 100644 --- a/maven-mercury/pom.xml +++ b/maven-mercury/pom.xml @@ -29,25 +29,54 @@ under the License. 4.0.0 maven-mercury Maven Mercury + + + + + + + org.codehaus.plexus + plexus-component-metadata + + + + generate-metadata + + + + + + + + - + + org.apache.maven.mercury mercury-artifact - + + org.apache.maven.mercury mercury-external - + + org.apache.maven maven-project-builder - 3.0-SNAPSHOT + + + org.codehaus.plexus + plexus-component-annotations + + junit junit 4.4 test - + + diff --git a/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java b/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java index dd88e377b1..7669202a2f 100644 --- a/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java +++ b/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java @@ -22,9 +22,19 @@ import org.apache.maven.shared.model.InterpolatorProperty; import org.apache.maven.shared.model.ModelContainer; import org.apache.maven.shared.model.ModelProperty; import org.apache.maven.shared.model.ModelTransformerContext; +import org.codehaus.plexus.component.annotations.Component; +/** + * + * Maven supplied plexus component that implements POM dependency processing for Mercury + * + * @author Shane Isbell + * @version $Id$ + * + */ +@Component( role=DependencyProcessor.class, hint="maven" ) public final class MavenDependencyProcessor - implements DependencyProcessor +implements DependencyProcessor { public List getDependencies( ArtifactBasicMetadata bmd, MetadataReader mdReader, Map system, Map user ) throws MetadataReaderException, DependencyProcessorException