1 package org.apache.maven.repository.converter;
4 * Copyright 2005-2006 The Apache Software Foundation.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.repository.ArtifactRepository;
21 import org.apache.maven.repository.reporting.ArtifactReporter;
23 import java.util.List;
26 * Copy a set of artifacts from one repository to the other, converting if necessary.
28 * @author <a href="mailto:brett@apache.org">Brett Porter</a>
30 public interface RepositoryConverter
32 String ROLE = RepositoryConverter.class.getName();
35 * Convert a single artifact, writing it into the target repository.
37 * @param artifact the artifact to convert
38 * @param targetRepository the target repository
39 * @param reporter reporter to track the results of the conversion
41 void convert( Artifact artifact, ArtifactRepository targetRepository, ArtifactReporter reporter )
42 throws RepositoryConversionException;
45 * Convert a set of artifacts, writing them into the target repository.
47 * @param artifacts the set of artifacts to convert
48 * @param targetRepository the target repository
49 * @param reporter reporter to track the results of the conversions
51 void convert( List artifacts, ArtifactRepository targetRepository, ArtifactReporter reporter )
52 throws RepositoryConversionException;