View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.repository.legacy;
20  
21  import java.io.File;
22  import java.util.List;
23  
24  import org.apache.maven.artifact.Artifact;
25  import org.apache.maven.artifact.metadata.ArtifactMetadata;
26  import org.apache.maven.artifact.repository.ArtifactRepository;
27  import org.apache.maven.wagon.ResourceDoesNotExistException;
28  import org.apache.maven.wagon.TransferFailedException;
29  import org.apache.maven.wagon.UnsupportedProtocolException;
30  import org.apache.maven.wagon.Wagon;
31  import org.apache.maven.wagon.events.TransferListener;
32  import org.apache.maven.wagon.repository.Repository;
33  
34  /**
35   * WagonManager
36   */
37  @Deprecated
38  public interface WagonManager {
39      @Deprecated
40      Wagon getWagon(String protocol) throws UnsupportedProtocolException;
41  
42      @Deprecated
43      Wagon getWagon(Repository repository) throws UnsupportedProtocolException, WagonConfigurationException;
44  
45      //
46      // Retriever
47      //
48      void getArtifact(Artifact artifact, ArtifactRepository repository, TransferListener transferListener, boolean force)
49              throws TransferFailedException, ResourceDoesNotExistException;
50  
51      void getArtifact(
52              Artifact artifact,
53              List<ArtifactRepository> remoteRepositories,
54              TransferListener transferListener,
55              boolean force)
56              throws TransferFailedException, ResourceDoesNotExistException;
57  
58      void getRemoteFile(
59              ArtifactRepository repository,
60              File destination,
61              String remotePath,
62              TransferListener downloadMonitor,
63              String checksumPolicy,
64              boolean force)
65              throws TransferFailedException, ResourceDoesNotExistException;
66  
67      void getArtifactMetadata(
68              ArtifactMetadata metadata, ArtifactRepository remoteRepository, File destination, String checksumPolicy)
69              throws TransferFailedException, ResourceDoesNotExistException;
70  
71      void getArtifactMetadataFromDeploymentRepository(
72              ArtifactMetadata metadata, ArtifactRepository remoteRepository, File file, String checksumPolicyWarn)
73              throws TransferFailedException, ResourceDoesNotExistException;
74  
75      //
76      // Deployer
77      //
78      void putArtifact(
79              File source, Artifact artifact, ArtifactRepository deploymentRepository, TransferListener downloadMonitor)
80              throws TransferFailedException;
81  
82      void putRemoteFile(ArtifactRepository repository, File source, String remotePath, TransferListener downloadMonitor)
83              throws TransferFailedException;
84  
85      void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository)
86              throws TransferFailedException;
87  }