mirror of https://github.com/apache/maven.git
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:
parent
ba371df6c8
commit
83ef648b04
|
@ -29,25 +29,54 @@ under the License.
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>maven-mercury</artifactId>
|
<artifactId>maven-mercury</artifactId>
|
||||||
<name>Maven Mercury</name>
|
<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>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.mercury</groupId>
|
<groupId>org.apache.maven.mercury</groupId>
|
||||||
<artifactId>mercury-artifact</artifactId>
|
<artifactId>mercury-artifact</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.mercury</groupId>
|
<groupId>org.apache.maven.mercury</groupId>
|
||||||
<artifactId>mercury-external</artifactId>
|
<artifactId>mercury-external</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-project-builder</artifactId>
|
<artifactId>maven-project-builder</artifactId>
|
||||||
<version>3.0-SNAPSHOT</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
<artifactId>plexus-component-annotations</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.4</version>
|
<version>4.4</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -22,9 +22,19 @@ import org.apache.maven.shared.model.InterpolatorProperty;
|
||||||
import org.apache.maven.shared.model.ModelContainer;
|
import org.apache.maven.shared.model.ModelContainer;
|
||||||
import org.apache.maven.shared.model.ModelProperty;
|
import org.apache.maven.shared.model.ModelProperty;
|
||||||
import org.apache.maven.shared.model.ModelTransformerContext;
|
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
|
public final class MavenDependencyProcessor
|
||||||
implements DependencyProcessor
|
implements DependencyProcessor
|
||||||
{
|
{
|
||||||
public List<ArtifactBasicMetadata> getDependencies( ArtifactBasicMetadata bmd, MetadataReader mdReader, Map system, Map user )
|
public List<ArtifactBasicMetadata> getDependencies( ArtifactBasicMetadata bmd, MetadataReader mdReader, Map system, Map user )
|
||||||
throws MetadataReaderException, DependencyProcessorException
|
throws MetadataReaderException, DependencyProcessorException
|
||||||
|
|
Loading…
Reference in New Issue