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

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

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

origin: sonatype/sonatype-aether

public DependencyGraphTransformer getDependencyGraphTransformer()
{
  return session.getDependencyGraphTransformer();
}
origin: org.netbeans.modules/org-netbeans-modules-maven-embedder

@Override
public CollectResult collectDependencies(RepositorySystemSession session, CollectRequest request) throws DependencyCollectionException {
  DefaultRepositorySystemSession cloned = new DefaultRepositorySystemSession(session);
  DependencyGraphTransformer transformer = session.getDependencyGraphTransformer();
  //need to reset the transformer to prevent the transformation to happen and to it below separately.
  cloned.setDependencyGraphTransformer(null);
  CollectResult res = super.collectDependencies(cloned, request);
  CloningDependencyVisitor vis = new CloningDependencyVisitor();
  res.getRoot().accept(vis);
  //this part copied from DefaultDependencyCollector
  try {
    DefaultDependencyGraphTransformationContext context =
        new DefaultDependencyGraphTransformationContext(session);
    res.setRoot(transformer.transformGraph(res.getRoot(), context));
  } catch (RepositoryException e) {
    res.addException(e);
  }
  if (!res.getExceptions().isEmpty()) {
    throw new DependencyCollectionException(res);
  }
  res.getRoot().setData("NB_TEST", vis.getRootNode());
  return res;
}
origin: org.sonatype.aether/aether-impl

if ( session.getDependencyGraphTransformer() == null )
origin: sonatype/sonatype-aether

if ( session.getDependencyGraphTransformer() == null )
origin: org.sonatype.aether/aether-impl

DependencyGraphTransformer transformer = session.getDependencyGraphTransformer();
try
origin: sonatype/sonatype-aether

DependencyGraphTransformer transformer = session.getDependencyGraphTransformer();
try
origin: sonatype/sonatype-aether

setDependencyManager( session.getDependencyManager() );
setDependencySelector( session.getDependencySelector() );
setDependencyGraphTransformer( session.getDependencyGraphTransformer() );
setData( session.getData() );
setCache( session.getCache() );
org.sonatype.aetherRepositorySystemSessiongetDependencyGraphTransformer

Javadoc

Gets the dependency graph transformer to use for building dependency graphs.

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.
  • getSystemProperties
    Gets the system properties to use, e.g. for processing of artifact descriptors. System properties ar
  • getUserProperties
    Gets the user properties to use, e.g. for processing of artifact descriptors. User properties are si
  • getSystemProperties,
  • getUserProperties,
  • getWorkspaceReader,
  • getChecksumPolicy,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector,
  • getUpdatePolicy

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • String (java.lang)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JComboBox (javax.swing)
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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