Examples of RemoteRepositoryContent


Examples of org.apache.maven.archiva.repository.RemoteRepositoryContent

                if (connector.isDisabled())
                {
                    continue;
                }
               
                RemoteRepositoryContent targetRepository = connector.getTargetRepository();
                requestProperties.setProperty( "remoteRepositoryId", targetRepository.getId() );

                String targetPath = targetRepository.toPath( artifact );

                try
                {
                    File downloadedFile =
                        transferFile( connector, targetRepository, targetPath, repository, workingDirectory, localFile, requestProperties,
                                      true );

                    if ( fileExists( downloadedFile ) )
                    {
                        log.debug( "Successfully transferred: " + downloadedFile.getAbsolutePath() );
                        return downloadedFile;
                    }
                }
                catch ( NotFoundException e )
                {
                    log.debug( "Artifact " + Keys.toKey( artifact ) + " not found on repository \""
                                           + targetRepository.getRepository().getId() + "\"." );
                }
                catch ( NotModifiedException e )
                {
                    log.debug( "Artifact " + Keys.toKey( artifact ) + " not updated on repository \""
                                           + targetRepository.getRepository().getId() + "\"." );
                }
                catch ( ProxyException e )
                {
                    validatePolicies( this.downloadErrorPolicies, connector.getPolicies(), requestProperties, artifact,
                                      targetRepository, localFile, e, previousExceptions );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.