Tabnine Logo
RepositorySystemSession.getChecksumPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
getChecksumPolicy
method
in
org.sonatype.aether.RepositorySystemSession

Best Java code snippets using org.sonatype.aether.RepositorySystemSession.getChecksumPolicy (Showing top 4 results out of 315)

origin: sonatype/sonatype-aether

public String getChecksumPolicy()
{
  return session.getChecksumPolicy();
}
origin: org.sonatype.aether/aether-impl

public RepositoryPolicy getPolicy( RepositorySystemSession session, RemoteRepository repository, boolean releases,
                  boolean snapshots )
{
  RepositoryPolicy policy;
  // get effective per-repository policy
  if ( releases && snapshots )
  {
    policy = merge( session, repository.getPolicy( false ), repository.getPolicy( true ) );
  }
  else
  {
    policy = repository.getPolicy( snapshots );
  }
  // superimpose global policy
  if ( !StringUtils.isEmpty( session.getChecksumPolicy() ) )
  {
    policy = policy.setChecksumPolicy( session.getChecksumPolicy() );
  }
  if ( !StringUtils.isEmpty( session.getUpdatePolicy() ) )
  {
    policy = policy.setUpdatePolicy( session.getUpdatePolicy() );
  }
  return policy;
}
origin: sonatype/sonatype-aether

public RepositoryPolicy getPolicy( RepositorySystemSession session, RemoteRepository repository, boolean releases,
                  boolean snapshots )
{
  RepositoryPolicy policy;
  // get effective per-repository policy
  if ( releases && snapshots )
  {
    policy = merge( session, repository.getPolicy( false ), repository.getPolicy( true ) );
  }
  else
  {
    policy = repository.getPolicy( snapshots );
  }
  // superimpose global policy
  if ( !StringUtils.isEmpty( session.getChecksumPolicy() ) )
  {
    policy = policy.setChecksumPolicy( session.getChecksumPolicy() );
  }
  if ( !StringUtils.isEmpty( session.getUpdatePolicy() ) )
  {
    policy = policy.setUpdatePolicy( session.getUpdatePolicy() );
  }
  return policy;
}
origin: sonatype/sonatype-aether

setIgnoreInvalidArtifactDescriptor( session.isIgnoreInvalidArtifactDescriptor() );
setIgnoreMissingArtifactDescriptor( session.isIgnoreMissingArtifactDescriptor() );
setChecksumPolicy( session.getChecksumPolicy() );
setUpdatePolicy( session.getUpdatePolicy() );
setLocalRepositoryManager( session.getLocalRepositoryManager() );
org.sonatype.aetherRepositorySystemSessiongetChecksumPolicy

Javadoc

Gets the global checksum policy. If set, the global checksum policy overrides the checksum policies of the remote repositories being used for resolution.

Popular methods of RepositorySystemSession

  • getConfigProperties
    Gets the configuration properties used to tweak internal aspects of the repository system (e.g. thre
  • getLocalRepository
    Gets the local repository used during this session. This is a convenience method for LocalRepository
  • getTransferListener
    Gets the listener being notified of uploads/downloads by the repository system.
  • getAuthenticationSelector
    Gets the authentication selector to use for repositories discovered in artifact descriptors. Note th
  • getLocalRepositoryManager
    Gets the local repository manager used during this session.
  • getProxySelector
    Gets the proxy selector to use for repositories discovered in artifact descriptors. Note that this s
  • getRepositoryListener
    Gets the listener being notified of actions in the repository system.
  • getArtifactTypeRegistry
    Gets the registry of artifact types recognized by this session.
  • getCache
    Gets the cache the repository system may use to save data for future reuse during the session.
  • getData
    Gets the custom data associated with this session.
  • getDependencyGraphTransformer
    Gets the dependency graph transformer to use for building dependency graphs.
  • getSystemProperties
    Gets the system properties to use, e.g. for processing of artifact descriptors. System properties ar
  • getDependencyGraphTransformer,
  • getSystemProperties,
  • getUserProperties,
  • getWorkspaceReader,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector,
  • getUpdatePolicy

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now