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

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

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

origin: sonatype/sonatype-aether

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

public static WorkspaceRepository getWorkspace( RepositorySystemSession session )
{
  WorkspaceReader reader = session.getWorkspaceReader();
  return ( reader != null ) ? reader.getRepository() : null;
}
origin: sonatype/sonatype-aether

public static WorkspaceRepository getWorkspace( RepositorySystemSession session )
{
  WorkspaceReader reader = session.getWorkspaceReader();
  return ( reader != null ) ? reader.getRepository() : null;
}
origin: sonatype/sonatype-aether

public static ArtifactRepository getRepository( RepositorySystemSession session,
                        List<RemoteRepository> repositories, Class<?> repoClass,
                        String repoId )
{
  if ( repoClass != null )
  {
    if ( WorkspaceRepository.class.isAssignableFrom( repoClass ) )
    {
      return session.getWorkspaceReader().getRepository();
    }
    else if ( LocalRepository.class.isAssignableFrom( repoClass ) )
    {
      return session.getLocalRepository();
    }
    else
    {
      for ( RemoteRepository repository : repositories )
      {
        if ( repoId.equals( repository.getId() ) )
        {
          return repository;
        }
      }
    }
  }
  return null;
}
origin: org.sonatype.aether/aether-impl

public static ArtifactRepository getRepository( RepositorySystemSession session,
                        List<RemoteRepository> repositories, Class<?> repoClass,
                        String repoId )
{
  if ( repoClass != null )
  {
    if ( WorkspaceRepository.class.isAssignableFrom( repoClass ) )
    {
      return session.getWorkspaceReader().getRepository();
    }
    else if ( LocalRepository.class.isAssignableFrom( repoClass ) )
    {
      return session.getLocalRepository();
    }
    else
    {
      for ( RemoteRepository repository : repositories )
      {
        if ( repoId.equals( repository.getId() ) )
        {
          return repository;
        }
      }
    }
  }
  return null;
}
origin: org.netbeans.modules/org-netbeans-modules-maven-embedder

@Override
public Artifact resolve(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginResolutionException {
  WorkspaceReader wr = session.getWorkspaceReader();
  NbWorkspaceReader nbwr = null;
  if (wr instanceof NbWorkspaceReader) {
    nbwr = (NbWorkspaceReader)wr;
    //this only works reliably because the NbWorkspaceReader is part of the session, not a component
    nbwr.silence();
  }
  try {
    return super.resolve(plugin, repositories, session);
  } finally {
    if (nbwr != null) {
      nbwr.normal();
    }
  }
}
origin: org.netbeans.modules/org-netbeans-modules-maven-embedder

@Override
public DependencyNode resolve(Plugin plugin, Artifact pluginArtifact, DependencyFilter dependencyFilter, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginResolutionException {
  
  WorkspaceReader wr = session.getWorkspaceReader();
  NbWorkspaceReader nbwr = null;
  if (wr instanceof NbWorkspaceReader) {
    nbwr = (NbWorkspaceReader)wr;
    //this only works reliably because the NbWorkspaceReader is part of the session, not a component
    nbwr.silence();
  }
  try {
    return super.resolve(plugin, pluginArtifact, dependencyFilter, repositories, session);
  } finally {
    if (nbwr != null) {
      nbwr.normal();
    }
  }
}

origin: org.sonatype.aether/aether-impl

WorkspaceReader workspace = session.getWorkspaceReader();
origin: sonatype/sonatype-aether

WorkspaceReader workspace = session.getWorkspaceReader();
origin: sonatype/sonatype-aether

setUpdatePolicy( session.getUpdatePolicy() );
setLocalRepositoryManager( session.getLocalRepositoryManager() );
setWorkspaceReader( session.getWorkspaceReader() );
setRepositoryListener( session.getRepositoryListener() );
setTransferListener( session.getTransferListener() );
org.sonatype.aetherRepositorySystemSessiongetWorkspaceReader

Javadoc

Gets the workspace reader used during this session. If set, the workspace reader will usually be consulted first to resolve artifacts.

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,
  • getChecksumPolicy,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector,
  • getUpdatePolicy

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
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