o restored the WagonManager, the archetype system and the nexus indexer both use this directly. doesn't matter we can now support them forever.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-07-01 22:16:29 +00:00
parent abca2a5252
commit f74539ec7f
4 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package org.apache.maven.artifact.manager;
import org.apache.maven.artifact.handler.ArtifactHandler;
import org.codehaus.plexus.component.annotations.Component;
@Component(role=WagonManager.class)
public class DefaultWagonManager
extends org.apache.maven.repository.legacy.DefaultWagonManager
implements WagonManager
{
}

View File

@ -0,0 +1,52 @@
package org.apache.maven.artifact.manager;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.ArtifactMetadata;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.repository.legacy.WagonConfigurationException;
import org.apache.maven.wagon.ResourceDoesNotExistException;
import org.apache.maven.wagon.TransferFailedException;
import org.apache.maven.wagon.UnsupportedProtocolException;
import org.apache.maven.wagon.Wagon;
import org.apache.maven.wagon.authentication.AuthenticationInfo;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.proxy.ProxyInfo;
import org.apache.maven.wagon.repository.Repository;
import org.apache.maven.wagon.repository.RepositoryPermissions;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import java.io.File;
import java.util.Collection;
import java.util.List;
/**
* Manages <a href="http://maven.apache.org/wagon">Wagon</a> related operations in Maven.
*
* @author <a href="michal.maczka@dimatics.com">Michal Maczka </a>
* @version $Id$
*/
@Deprecated
public interface WagonManager
extends org.apache.maven.repository.legacy.WagonManager
{
}

View File

@ -644,6 +644,13 @@ public class DefaultWagonManager
}
}
@Deprecated
public Wagon getWagon( Repository repository )
throws UnsupportedProtocolException
{
return getWagon( repository.getProtocol() );
}
@Deprecated
public Wagon getWagon( String protocol )
throws UnsupportedProtocolException

View File

@ -23,10 +23,21 @@ import org.apache.maven.artifact.metadata.ArtifactMetadata;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.wagon.ResourceDoesNotExistException;
import org.apache.maven.wagon.TransferFailedException;
import org.apache.maven.wagon.UnsupportedProtocolException;
import org.apache.maven.wagon.Wagon;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.repository.Repository;
public interface WagonManager
{
@Deprecated
Wagon getWagon( String protocol )
throws UnsupportedProtocolException;
@Deprecated
Wagon getWagon( Repository repository )
throws UnsupportedProtocolException, WagonConfigurationException;
//
// Retriever
//