Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.apache.maven.artifact.resolver;
  
  /*
   * 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 java.util.List;
 import java.util.Map;
 import java.util.Set;
 
A resolution request allows you to either use an existing MavenProject, or a coordinate (gid:aid:version) to process a POMs dependencies.

Author(s):
Jason van Zyl
 
     implements RepositoryRequest
 {
 
     private Artifact artifact;
 
     // Needs to go away
     // These are really overrides now, projects defining dependencies for a plugin that override what is
     // specified in the plugin itself.
     private Set<ArtifactartifactDependencies;
 
 
 
     private ArtifactFilter collectionFilter;
 
     private ArtifactFilter resolutionFilter;
 
     // Needs to go away
 
     // This is like a filter but overrides all transitive versions 
     private Map<StringArtifactmanagedVersionMap;
     
     private boolean resolveRoot = true;
 
     private boolean resolveTransitively = false;
 
     private boolean offline;
 
     private boolean forceUpdate;
 
     private List<Serverservers;
 
     private List<Mirrormirrors;
 
     private List<Proxyproxies;
 
     public ArtifactResolutionRequest()
     {
         // nothing here
     }
 
     public ArtifactResolutionRequestRepositoryRequest request )
     {
         setLocalRepositoryrequest.getLocalRepository() );
         setRemoteRepositoriesrequest.getRemoteRepositories() );
         setOfflinerequest.isOffline() );
         setForceUpdaterequest.isForceUpdate() );
     }
 
     public Artifact getArtifact()
     {
         return ;
     }
 
     public ArtifactResolutionRequest setArtifactArtifact artifact )
    {
        this. = artifact;
        return this;
    }
    public ArtifactResolutionRequest setArtifactDependenciesSet<ArtifactartifactDependencies )
    {
        this. = artifactDependencies;
        return this;
    }
    {
        return ;
    }
    {
        return ;
    }
    {
        this. = localRepository;
        return this;
    }
    {
        return ;
    }
    {
        this. = remoteRepositories;
        return this;
    }

    
Gets the artifact filter that controls traversal of the dependency graph.

Returns:
The filter used to determine which of the artifacts in the dependency graph should be traversed or null to collect all transitive dependencies.
    {
        return ;
    }
    {
        this. = filter;
        return this;
    }

    
Gets the artifact filter that controls downloading of artifact files. This filter operates on those artifacts that have been included by the getCollectionFilter().

Returns:
The filter used to determine which of the artifacts should have their files resolved or null to resolve the files for all collected artifacts.
    {
        return ;
    }
    {
        this. = filter;
        return this;
    }
    {
        return ;
    }
    {        
        this. = listeners;
        
        return this;
    }
    
    {
        .addlistener );
        return this;
    }
    {
        return ;
    }
    public ArtifactResolutionRequest setManagedVersionMapMap<StringArtifactmanagedVersionMap )
    {
        this. = managedVersionMap;
        return this;
    }
    public ArtifactResolutionRequest setResolveRootboolean resolveRoot )
    {
        this. = resolveRoot;
        
        return this;
    }
    
    public boolean isResolveRoot()
    {
        return ;
    }        
    public ArtifactResolutionRequest setResolveTransitivelyboolean resolveDependencies )
    {
        this. = resolveDependencies;
        
        return this;
    }
    
    public boolean isResolveTransitively()
    {
        return ;
    }        
    public String toString()
    {
        StringBuilder sb = new StringBuilder()
                .append"REQUEST: " ).append(  "\n" )
                .append"artifact: " ).append ).append(  "\n" )
                .append ).append(  "\n" )
                .append"localRepository: " ).append(   ).append(  "\n" )
                .append"remoteRepositories: " ).append(   ).append(  "\n" );
        
        return sb.toString();
    }
    public boolean isOffline()
    {
        return ;
    }
    public ArtifactResolutionRequest setOfflineboolean offline )
    {
        this. = offline;
        return this;
    }
    public boolean isForceUpdate()
    {
        return ;
    }
    public ArtifactResolutionRequest setForceUpdateboolean forceUpdate )
    {
        this. = forceUpdate;
        return this;
    }
    public ArtifactResolutionRequest setServersList<Serverservers )
    {
        this. = servers;
        return this;
    }
    public List<ServergetServers()
    {
        if (  == null )
        {
             = new ArrayList<Server>();
        }
        return ;
    }
    public ArtifactResolutionRequest setMirrorsList<Mirrormirrors )
    {
        this. = mirrors;
        return this;
    }
    public List<MirrorgetMirrors()
    {
        if (  == null )
        {
             = new ArrayList<Mirror>();
        }
        return ;
    }
    public ArtifactResolutionRequest setProxiesList<Proxyproxies )
    {
        this. = proxies;
        return this;
    }
    public List<ProxygetProxies()
    {
        if (  == null )
        {
             = new ArrayList<Proxy>();
        }
        return ;
    }
    //
    // Used by Tycho and will break users and force them to upgrade to Maven 3.1 so we should really leave
    // this here, possibly indefinitely.
    //
    public ArtifactResolutionRequest setCacheRepositoryCache cache )                                                                                             
    {                                                                                                                                                              
        return this;                                                                                                                                               
    }                    
New to GrepCode? Check out our FAQ X