changed maven-mercury into a real plexus component, needed for MERCURY-46

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@723476 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Gusakov 2008-12-04 22:40:32 +00:00
parent ba371df6c8
commit 83ef648b04
2 changed files with 45 additions and 6 deletions

View File

@ -29,25 +29,54 @@ under the License.
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-mercury</artifactId>
<name>Maven Mercury</name>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<executions>
<execution>
<goals>
<goal>generate-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<dependency>
<groupId>org.apache.maven.mercury</groupId>
<artifactId>mercury-artifact</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>org.apache.maven.mercury</groupId>
<artifactId>mercury-external</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project-builder</artifactId>
<version>3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<scope>test</scope>
</dependency>
</dependency>
</dependencies>
</project>

View File

@ -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<ArtifactBasicMetadata> getDependencies( ArtifactBasicMetadata bmd, MetadataReader mdReader, Map system, Map user )
throws MetadataReaderException, DependencyProcessorException