From: Olivier Lamy Date: Wed, 15 Jun 2011 15:30:53 +0000 (+0000) Subject: back to maven2 api for dependency tree X-Git-Tag: archiva-1.4-M1~627 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3603c5c4365a15faa46b5c9af4b8bbbac03659a;p=archiva.git back to maven2 api for dependency tree git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136082 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-cli/pom.xml b/archiva-cli/pom.xml index 733299940..3c35060b6 100644 --- a/archiva-cli/pom.xml +++ b/archiva-cli/pom.xml @@ -58,6 +58,10 @@ cli 7 + + org.apache.maven + maven-artifact-manager + commons-io commons-io @@ -66,10 +70,6 @@ commons-lang commons-lang - - org.apache.maven - maven-compat - org.springframework spring-beans diff --git a/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml b/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml index 4c5373692..2d78604cf 100644 --- a/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml +++ b/archiva-modules/archiva-base/archiva-artifact-converter/pom.xml @@ -39,7 +39,11 @@ org.apache.maven - maven-compat + maven-artifact + + + org.apache.maven + maven-artifact-manager org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index 65920b9d1..f33940dba 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -320,12 +320,6 @@ maven-model-builder ${maven3x.version} - - org.apache.maven - maven-compat - ${maven3x.version} - - org.sonatype.sisu sisu-inject-plexus diff --git a/archiva-modules/plugins/maven2-repository/pom.xml b/archiva-modules/plugins/maven2-repository/pom.xml index 0344dbb49..ae853c990 100644 --- a/archiva-modules/plugins/maven2-repository/pom.xml +++ b/archiva-modules/plugins/maven2-repository/pom.xml @@ -68,15 +68,15 @@ org.apache.maven - maven-compat + maven-artifact-manager org.apache.maven - maven-model + maven-repository-metadata org.apache.maven - maven-core + maven-model org.apache.maven.shared diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java index 4ab685160..a66da60bc 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java @@ -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( versions ); } - public ResolutionGroup retrieve( MetadataResolutionRequest metadataResolutionRequest ) - throws ArtifactMetadataRetrievalException - { - //TODO - return null; - } - - public List retrieveAvailableVersions( MetadataResolutionRequest metadataResolutionRequest ) - throws ArtifactMetadataRetrievalException - { - //TODO - return null; - } public List retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository artifactRepository, diff --git a/pom.xml b/pom.xml index bddfbe50e..8c6ae6572 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,7 @@ 2.2.3 3.0.3 + 2.0.8 1.0-beta-5 1.3-SNAPSHOT 6.1.19 @@ -568,6 +569,7 @@ maven-model-builder ${maven3x.version} + + + org.apache.maven + maven-artifact + ${maven.version} + + + org.apache.maven + maven-artifact-manager + ${maven.version} + + + org.codehaus.plexus + plexus-container-default + + + + + org.apache.maven + maven-repository-metadata + ${maven.version} + org.codehaus.plexus plexus-digest @@ -1083,16 +1107,7 @@ - - org.apache.maven - maven-artifact - ${maven3x.version} - - - org.apache.maven - maven-repository-metadata - ${maven3x.version} - + net.sf.ehcache ehcache-core