]> source.dussan.org Git - archiva.git/commitdiff
back to maven2 api for dependency tree
authorOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 15:30:53 +0000 (15:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 15:30:53 +0000 (15:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136082 13f79535-47bb-0310-9956-ffa450edef68

archiva-cli/pom.xml
archiva-modules/archiva-base/archiva-artifact-converter/pom.xml
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/plugins/maven2-repository/pom.xml
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java
pom.xml

index 733299940f544d9c728940cd9ef854c4cbe88599..3c35060b60246b828c06d657b8ec55254845b063 100644 (file)
       <artifactId>cli</artifactId>
       <version>7</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact-manager</artifactId>
+    </dependency>
     <dependency>
       <groupId>commons-io</groupId>
       <artifactId>commons-io</artifactId>
       <groupId>commons-lang</groupId>
       <artifactId>commons-lang</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-compat</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
index 4c5373692a856b5b569f405158e87d014a082757..2d78604cf4aef90918bdfdf516b87b0514f90b11 100644 (file)
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
-      <artifactId>maven-compat</artifactId>
+      <artifactId>maven-artifact</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact-manager</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
index 65920b9d19a9fe91d11c9b079339d1f2de1eb555..f33940dbac833308fc498eb1fca0fc68397654e5 100644 (file)
       <artifactId>maven-model-builder</artifactId>
       <version>${maven3x.version}</version>
     </dependency>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-compat</artifactId>
-      <version>${maven3x.version}</version>
-    </dependency>
-
     <dependency>
       <groupId>org.sonatype.sisu</groupId>
       <artifactId>sisu-inject-plexus</artifactId>
index 0344dbb49b3b22d419a470f1dd985ee5196ee688..ae853c990d0277c4c473c4c02e5019bd2ab969d9 100644 (file)
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
-      <artifactId>maven-compat</artifactId>
+      <artifactId>maven-artifact-manager</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
-      <artifactId>maven-model</artifactId>
+      <artifactId>maven-repository-metadata</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
-      <artifactId>maven-core</artifactId>
+      <artifactId>maven-model</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
index 4ab685160f6ef6c175b9de8e67b7d7ff126441db..a66da60bc6700c2787e95349355075da17972a51 100644 (file)
@@ -62,7 +62,6 @@ import org.apache.maven.model.building.ModelBuilder;
 import org.apache.maven.model.building.ModelBuildingException;
 import org.apache.maven.model.building.ModelBuildingRequest;
 import org.apache.maven.model.resolution.UnresolvableModelException;
-import org.apache.maven.repository.legacy.metadata.MetadataResolutionRequest;
 import org.apache.maven.shared.dependency.tree.DependencyNode;
 import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException;
 import org.apache.maven.shared.dependency.tree.DependencyTreeResolutionListener;
@@ -548,19 +547,6 @@ public class DefaultDependencyTreeBuilder
             return new ArrayList<ArtifactVersion>( versions );
         }
 
-        public ResolutionGroup retrieve( MetadataResolutionRequest metadataResolutionRequest )
-            throws ArtifactMetadataRetrievalException
-        {
-            //TODO
-            return null;
-        }
-
-        public List<ArtifactVersion> retrieveAvailableVersions( MetadataResolutionRequest metadataResolutionRequest )
-            throws ArtifactMetadataRetrievalException
-        {
-            //TODO
-            return null;
-        }
 
         public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact,
                                                                                         ArtifactRepository artifactRepository,
diff --git a/pom.xml b/pom.xml
index bddfbe50e2b590996ef5e57c25166beaeaf53670..8c6ae657271d9d8c96814a23e78ec0c1e58dc47d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -64,6 +64,7 @@
   <properties>
     <struts.version>2.2.3</struts.version>
     <maven3x.version>3.0.3</maven3x.version>
+    <maven.version>2.0.8</maven.version>
     <wagon.version>1.0-beta-5</wagon.version>
     <redback.version>1.3-SNAPSHOT</redback.version>
     <jetty.version>6.1.19</jetty.version>
         <artifactId>maven-model-builder</artifactId>
         <version>${maven3x.version}</version>
       </dependency>
+      <!--
       <dependency>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-compat</artifactId>
         <artifactId>maven-core</artifactId>
         <version>${maven3x.version}</version>
       </dependency>
+      -->
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-artifact</artifactId>
+        <version>${maven.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-artifact-manager</artifactId>
+        <version>${maven.version}</version>
+        <exclusions>
+          <exclusion>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-container-default</artifactId>
+          </exclusion>
+        </exclusions>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-repository-metadata</artifactId>
+        <version>${maven.version}</version>
+      </dependency>
       <dependency>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-digest</artifactId>
           </exclusion>
         </exclusions>
       </dependency>
-      <dependency>
-        <groupId>org.apache.maven</groupId>
-        <artifactId>maven-artifact</artifactId>
-        <version>${maven3x.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.maven</groupId>
-        <artifactId>maven-repository-metadata</artifactId>
-        <version>${maven3x.version}</version>
-      </dependency>
+
       <dependency>
         <groupId>net.sf.ehcache</groupId>
         <artifactId>ehcache-core</artifactId>