/** {@inheritDoc} */ public String getDependencyConflictId() { return artifact.getDependencyConflictId(); }
/** {@inheritDoc} */ public String getDependencyConflictId() { return artifact.getDependencyConflictId(); }
public Object getKey() { return artifact.getDependencyConflictId(); }
String requestedId = requestedArtifact.getDependencyConflictId(); for ( Iterator it = artifacts.iterator(); it.hasNext(); ) if ( requestedId.equals( artifact.getDependencyConflictId() ) )
public void addDependencies( Set<Artifact> artifacts, List<ArtifactRepository> remoteRepositories, ArtifactFilter filter ) throws CyclicDependencyException, OverConstrainedVersionException { if ( artifacts != null && !artifacts.isEmpty() ) { children = new ArrayList<>( artifacts.size() ); for ( Artifact a : artifacts ) { if ( parents.contains( a.getDependencyConflictId() ) ) { a.setDependencyTrail( getDependencyTrail() ); throw new CyclicDependencyException( "A dependency has introduced a cycle", a ); } children.add( new ResolutionNode( a, remoteRepositories, this ) ); } children = Collections.unmodifiableList( children ); } else { children = Collections.emptyList(); } trail = null; }
Artifact managedOriginatingArtifact = versionMap.get( originatingArtifact.getDependencyConflictId() ); versionMap.remove( originatingArtifact.getDependencyConflictId() );
&& ref.getArtifact().getDependencyConflictId().equals( pluginArtifact.getDependencyConflictId() ) )
map.put( artifact.getDependencyConflictId(), artifact ); Artifact resolved = map.get( artifact.getDependencyConflictId() ); if ( resolved != null )
artifact.getDependencyConflictId() + "': " + e.getMessage(), e, artifact );
for ( Artifact artifact : allArtifacts ) String conflictId = artifact.getDependencyConflictId(); if ( !mergedArtifacts.containsKey( conflictId ) )
public void transformForDeployment( Artifact artifact, ArtifactRepository remoteRepository, ArtifactRepository localRepository ) throws ArtifactDeploymentException { if ( artifact.isSnapshot() ) { Snapshot snapshot = new Snapshot(); snapshot.setTimestamp( getDeploymentTimestamp() ); // we update the build number anyway so that it doesn't get lost. It requires the timestamp to take effect try { int buildNumber = resolveLatestSnapshotBuildNumber( artifact, localRepository, remoteRepository ); snapshot.setBuildNumber( buildNumber + 1 ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactDeploymentException( "Error retrieving previous build number for artifact '" + artifact.getDependencyConflictId() + "': " + e.getMessage(), e ); } RepositoryMetadata metadata = new SnapshotArtifactRepositoryMetadata( artifact, snapshot ); artifact.setResolvedVersion( constructVersion( metadata.getMetadata().getVersioning(), artifact.getBaseVersion() ) ); artifact.addMetadata( metadata ); } }
String key = artifact.getDependencyConflictId(); Dependency dependency = dependencies.get( key ); Collection<Exclusion> exclusions = dependency != null ? dependency.getExclusions() : null;
artifact.getDependencyConflictId() + "': " + e.getMessage(), e );
public void omitForNearer(final Artifact omitted, final Artifact kept) { assert omitted.getDependencyConflictId().equals(kept.getDependencyConflictId()); Node prev = (Node) artifacts.get(omitted.getDependencyConflictId()); if (prev != null) { if (prev.parent != null) { prev.parent.children.remove(prev); } artifacts.remove(omitted.getDependencyConflictId()); } includeArtifact(kept); }
public void omitForNearer(final Artifact omitted, final Artifact kept) { assert omitted.getDependencyConflictId().equals(kept.getDependencyConflictId()); Node prev = (Node) artifacts.get(omitted.getDependencyConflictId()); if (prev != null) { if (prev.parent != null) { prev.parent.children.remove(prev); } artifacts.remove(omitted.getDependencyConflictId()); } includeArtifact(kept); }
public void startProcessChildren(final Artifact artifact) { Node node = (Node) artifacts.get(artifact.getDependencyConflictId()); node.depth = currentDepth++; if (parents.isEmpty()) { tree.rootNode = node; } parents.push(node); }
public void startProcessChildren(final Artifact artifact) { Node node = (Node) artifacts.get(artifact.getDependencyConflictId()); node.depth = currentDepth++; if (parents.isEmpty()) { tree.rootNode = node; } parents.push(node); }
@Override public void updateScope( Artifact artifact, String scope ) { Node node = (Node) artifacts.get( artifact.getDependencyConflictId() ); node.artifact.setScope( scope ); }
public void manageArtifact(final Artifact artifact, final Artifact replacement) { Node node = (Node) artifacts.get(artifact.getDependencyConflictId()); if (node != null) { if (replacement.getVersion() != null) { node.artifact.setVersion(replacement.getVersion()); } if (replacement.getScope() != null) { node.artifact.setScope(replacement.getScope()); } } } }
public void manageArtifact(final Artifact artifact, final Artifact replacement) { Node node = (Node) artifacts.get(artifact.getDependencyConflictId()); if (node != null) { if (replacement.getVersion() != null) { node.artifact.setVersion(replacement.getVersion()); } if (replacement.getScope() != null) { node.artifact.setScope(replacement.getScope()); } } } }