mirror of https://github.com/apache/maven.git
cleanup
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@265640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b6a7939db
commit
a16be1f23d
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -61,11 +61,6 @@
|
|||
<role>org.apache.maven.artifact.transform.ArtifactTransformation</role>
|
||||
<field-name>artifactTransformations</field-name>
|
||||
</requirement>
|
||||
<requirement>
|
||||
<role>org.apache.maven.artifact.transform.ArtifactTransformation</role>
|
||||
<role-hint>snapshot</role-hint>
|
||||
<field-name>snapshotTransformation</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
|
|
Loading…
Reference in New Issue