1package org.apache.archiva.dependency.tree.maven2;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import org.slf4j.Logger;
22import org.slf4j.LoggerFactory;
23import org.sonatype.aether.RepositorySystemSession;
24import org.sonatype.aether.connector.file.FileRepositoryConnectorFactory;
25import org.sonatype.aether.repository.RemoteRepository;
26import org.sonatype.aether.spi.connector.ArtifactDownload;
27import org.sonatype.aether.spi.connector.ArtifactUpload;
28import org.sonatype.aether.spi.connector.MetadataDownload;
29import org.sonatype.aether.spi.connector.MetadataUpload;
30import org.sonatype.aether.spi.connector.RepositoryConnector;
31import org.sonatype.aether.transfer.NoRepositoryConnectorException;
3233import java.util.Collection;
3435/**36 * @author Olivier Lamy37 * @since 1.4-M338 */39publicclassArchivaRepositoryConnectorFactory40extends FileRepositoryConnectorFactory
41 {
42publicArchivaRepositoryConnectorFactory()
43 {
44// no op but empty constructor needed by aether45 }
4647 @Override
48public RepositoryConnector newInstance( RepositorySystemSession session, RemoteRepository repository )
49throws NoRepositoryConnectorException
50 {
51try52 {
53returnsuper.newInstance( session, repository );
54 }
55catch ( NoRepositoryConnectorException e )
56 {
5758 }
5960returnnew RepositoryConnector()
61 {
6263private Logger log = LoggerFactory.getLogger( getClass() );
6465 @Override
66publicvoid get( Collection<? extends ArtifactDownload> artifactDownloads,
67 Collection<? extends MetadataDownload> metadataDownloads )
68 {
69 log.debug( "get" );
70 }
7172 @Override
73publicvoid put( Collection<? extends ArtifactUpload> artifactUploads,
74 Collection<? extends MetadataUpload> metadataUploads )
75 {
76 log.debug( "put" );
77 }
7879 @Override
80publicvoid close()
81 {
82 log.debug( "close" );
83 }
84 };
85 }
86 }