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

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

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

origin: sonatype/sonatype-aether

public String getUpdatePolicy()
{
  return session.getUpdatePolicy();
}
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

setIgnoreMissingArtifactDescriptor( session.isIgnoreMissingArtifactDescriptor() );
setChecksumPolicy( session.getChecksumPolicy() );
setUpdatePolicy( session.getUpdatePolicy() );
setLocalRepositoryManager( session.getLocalRepositoryManager() );
setWorkspaceReader( session.getWorkspaceReader() );
org.sonatype.aetherRepositorySystemSessiongetUpdatePolicy

Javadoc

Gets the global update policy. If set, the global update policy overrides the update 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,
  • getChecksumPolicy,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text 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