maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ogusa...@apache.org
Subject svn commit: r723476 - in /maven/components/trunk/maven-mercury: pom.xml src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
Date Thu, 04 Dec 2008 22:40:32 GMT
Author: ogusakov
Date: Thu Dec  4 14:40:32 2008
New Revision: 723476

URL: http://svn.apache.org/viewvc?rev=723476&view=rev
Log:
changed maven-mercury into a real plexus component, needed for MERCURY-46

Modified:
    maven/components/trunk/maven-mercury/pom.xml
    maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java

Modified: maven/components/trunk/maven-mercury/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-mercury/pom.xml?rev=723476&r1=723475&r2=723476&view=diff
==============================================================================
--- maven/components/trunk/maven-mercury/pom.xml (original)
+++ maven/components/trunk/maven-mercury/pom.xml Thu Dec  4 14:40:32 2008
@@ -29,25 +29,54 @@
   <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>

Modified: maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java?rev=723476&r1=723475&r2=723476&view=diff
==============================================================================
--- maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
(original)
+++ maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
Thu Dec  4 14:40:32 2008
@@ -22,9 +22,19 @@
 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



Mime
View raw message