@Override public PluginRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimplePluginRelationship( getSources(), getPomLocation(), ref, t, getIndex(), isManaged(), isReporting(), isInherited() ); }
@Override public PluginRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimplePluginRelationship( getSources(), getPomLocation(), d, ref, getIndex(), isManaged(), isReporting(), isInherited() ); }
@Override public String toString() { return String.format( "PluginRelationship [%s => %s (managed=%s, index=%s)]", getDeclaring(), getTarget(), isManaged(), getIndex() ); }
@Override public PluginRelationship detach() { return new SimplePluginRelationship( this ); }
@Override public ArtifactRef getTargetArtifact() { return new SimpleArtifactRef( getTarget(), "maven-plugin", null ); }
public Builder withPlugin( final ProjectVersionRef ref, final boolean managed, final boolean inherited ) { withPlugins( new SimplePluginRelationship( source, ref, ref, getNextPluginIndex( managed ), managed, inherited ) ); return this; }
@Override public PluginRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimplePluginRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isManaged(), reporting, isInherited() ); } }
rel = new SimplePluginRelationship( sources, pomLocation, declaring, target, index, managed, Boolean.TRUE.equals( report ), inherited ); break;
@Override public synchronized PluginRelationship cloneFor( final ProjectVersionRef projectRef ) { return new SimplePluginRelationship( getSources(), getPomLocation(), projectRef, getTarget(), getIndex(), isManaged(), reporting, isInherited() ); }
rel = new SimplePluginRelationship( sources, pomLocation, declaring, target, index, managed, Boolean.TRUE.equals( report ), inherited ); break;
@Override public PluginRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimplePluginRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isManaged(), reporting, isInherited() ); }
builder.withPlugins( new SimplePluginRelationship( source, location, projectRef, pluginRef, builder.getNextPluginDependencyIndex( projectRef, managed,