return system.resolveDependencies(session, dependencyRequest).getArtifactResults(); } catch (NullPointerException | DependencyResolutionException ex) { throw new RepositoryException( String.format("Cannot fetch dependencies for %s", dependency), ex);
public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context) throws RepositoryException { List<?> sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); if (sortedConflictIds == null) { ConflictIdSorter sorter = new ConflictIdSorter(); sorter.transformGraph(node, context); sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); } Map<?, ?> conflictIds = (Map<?, ?>) context.get(TransformationContextKeys.CONFLICT_IDS); if (conflictIds == null) { throw new RepositoryException("conflict groups have not been identified"); } Map<DependencyNode, Integer> depths = new IdentityHashMap<DependencyNode, Integer>(conflictIds.size()); for (Object key : sortedConflictIds) { ConflictGroup group = new ConflictGroup(key); depths.clear(); selectVersion(node, null, 0, depths, group, conflictIds); updateNonSelectedVersions(group, conflictIds); } return node; }
public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context) throws RepositoryException { List<?> sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); if (sortedConflictIds == null) { ConflictIdSorter sorter = new ConflictIdSorter(); sorter.transformGraph(node, context); sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); } Map<?, ?> conflictIds = (Map<?, ?>) context.get(TransformationContextKeys.CONFLICT_IDS); if (conflictIds == null) { throw new RepositoryException("conflict groups have not been identified"); } Map<DependencyNode, Integer> depths = new IdentityHashMap<DependencyNode, Integer>(conflictIds.size()); for (Object key : sortedConflictIds) { ConflictGroup group = new ConflictGroup(key); depths.clear(); selectVersion(node, null, 0, depths, group, conflictIds); updateNonSelectedVersions(group, conflictIds); } return node; }
public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context) throws RepositoryException { List<?> sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); if (sortedConflictIds == null) { ConflictIdSorter sorter = new ConflictIdSorter(); sorter.transformGraph(node, context); sortedConflictIds = (List<?>) context.get(TransformationContextKeys.SORTED_CONFLICT_IDS); } Map<?, ?> conflictIds = (Map<?, ?>) context.get(TransformationContextKeys.CONFLICT_IDS); if (conflictIds == null) { throw new RepositoryException("conflict groups have not been identified"); } Map<DependencyNode, Integer> depths = new IdentityHashMap<DependencyNode, Integer>(conflictIds.size()); for (Object key : sortedConflictIds) { ConflictGroup group = new ConflictGroup(key); depths.clear(); selectVersion(node, null, 0, depths, group, conflictIds); updateNonSelectedVersions(group, conflictIds); } return node; }
public DependencyNode transformGraph( DependencyNode node, DependencyGraphTransformationContext context ) throws RepositoryException { List<?> sortedConflictIds = (List<?>) context.get( TransformationContextKeys.SORTED_CONFLICT_IDS ); if ( sortedConflictIds == null ) { ConflictIdSorter sorter = new ConflictIdSorter(); sorter.transformGraph( node, context ); sortedConflictIds = (List<?>) context.get( TransformationContextKeys.SORTED_CONFLICT_IDS ); } Map<?, ?> conflictIds = (Map<?, ?>) context.get( TransformationContextKeys.CONFLICT_IDS ); if ( conflictIds == null ) { throw new RepositoryException( "conflict groups have not been identified" ); } Map<DependencyNode, Integer> depths = new IdentityHashMap<DependencyNode, Integer>( conflictIds.size() ); for ( Object key : sortedConflictIds ) { ConflictGroup group = new ConflictGroup( key ); depths.clear(); selectVersion( node, null, 0, depths, group, conflictIds, node ); pruneNonSelectedVersions( group, conflictIds ); } return node; }
if ( conflictIds == null ) throw new RepositoryException( "conflict groups have not been identified" );
new RepositoryException( "Artifact relocations form a cycle: " + visited ); invalidDescriptor( session, trace, artifact, exception ); if ( session.isIgnoreInvalidArtifactDescriptor() )