@Override public PluginDependencyRelationship detach() { return new SimplePluginDependencyRelationship( this ); }
@Override public PluginDependencyRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimplePluginDependencyRelationship( srcs, getPomLocation(), getDeclaring(), plugin, getTarget(), getIndex(), isManaged(), isInherited() ); } }
@Override public PluginDependencyRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimplePluginDependencyRelationship( srcs, getPomLocation(), getDeclaring(), plugin, getTarget(), getIndex(), isManaged(), isInherited() ); }
final ArtifactRef target = SimpleArtifactRef.parse( tgt ); rel = new SimplePluginDependencyRelationship( sources, pomLocation, declaring, plugin, target, index, managed, inherited ); break;
final ArtifactRef target = SimpleArtifactRef.parse( tgt ); rel = new SimplePluginDependencyRelationship( sources, pomLocation, declaring, plugin, target, index, managed, inherited ); break;
@Override public synchronized PluginDependencyRelationship cloneFor( final ProjectVersionRef projectRef ) { return new SimplePluginDependencyRelationship( getSources(), getPomLocation(), projectRef, plugin, getTarget(), getIndex(), isManaged(), isInherited() ); }
@Override public PluginDependencyRelationship selectDeclaring( final ProjectVersionRef ref ) { final ArtifactRef t = getTarget(); return new SimplePluginDependencyRelationship( getSources(), getPomLocation(), ref, getPlugin(), t, getIndex(), isManaged(), isInherited() ); }
builder.withPluginDependencies( new SimplePluginDependencyRelationship( source, location,
@Override public PluginDependencyRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); ArtifactRef t = getTarget(); t = (ArtifactRef) ( ( ref instanceof ArtifactRef ) ? ref : new SimpleArtifactRef( ref, t.getType(), t.getClassifier() ) ); return new SimplePluginDependencyRelationship( getSources(), getPomLocation(), d, getPlugin(), t, getIndex(), isManaged(), isInherited() ); }