diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java index a7c791b1f1..6ac4275968 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java @@ -179,6 +179,7 @@ public abstract class AbstractVersionTransformation private VersionArtifactMetadata readFromLocalRepository( Artifact artifact, ArtifactRepository localRepository ) throws IOException { + // TODO: we could cache the results of this, perhaps inside the artifact repository? AbstractVersionArtifactMetadata metadata = createMetadata( artifact ); metadata.readFromLocalRepository( localRepository ); return metadata; diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/DefaultArtifactTransformationManager.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/DefaultArtifactTransformationManager.java index 4e3ef70efe..2347c30433 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/DefaultArtifactTransformationManager.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/DefaultArtifactTransformationManager.java @@ -1,5 +1,21 @@ package org.apache.maven.artifact.transform; +/* + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; import org.apache.maven.artifact.repository.ArtifactRepository; @@ -10,11 +26,8 @@ import java.util.List; public class DefaultArtifactTransformationManager implements ArtifactTransformationManager { - private List artifactTransformations; - private SnapshotTransformation snapshotTransformation; - public void transformForResolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) throws ArtifactMetadataRetrievalException { diff --git a/maven-artifact-manager/src/main/resources/META-INF/plexus/components.xml b/maven-artifact-manager/src/main/resources/META-INF/plexus/components.xml index efd66c4d3d..9e58a85638 100644 --- a/maven-artifact-manager/src/main/resources/META-INF/plexus/components.xml +++ b/maven-artifact-manager/src/main/resources/META-INF/plexus/components.xml @@ -61,11 +61,6 @@ org.apache.maven.artifact.transform.ArtifactTransformation artifactTransformations - - org.apache.maven.artifact.transform.ArtifactTransformation - snapshot - snapshotTransformation -