public void addArtifactRef( final ArtifactRef ref ) { addVersionRef( ref.asProjectVersionRef() ); artifactRefs.add( ref ); }
public void addArtifactRef( final ArtifactRef ref ) { addVersionRef( ref.asProjectVersionRef() ); artifactRefs.add( ref ); }
public MavenPomView readPom( String path, PromoteRequest request, StoreKey... extraLocations ) throws AproxWorkflowException, GalleyMavenException, AproxDataException { ArtifactRef artifactRef = getArtifact( path ); if ( artifactRef == null ) { return null; } StoreKey key = request.getSource(); Transfer transfer = getTransfer( key, path ); List<Location> locations = new ArrayList<>( extraLocations.length + 1 ); locations.add( transfer.getLocation() ); addLocations( locations, extraLocations ); return pomReader.read( artifactRef.asProjectVersionRef(), transfer, locations, MavenPomView.ALL_PROFILES ); }
public MavenPomView readLocalPom( String path, PromoteRequest request ) throws AproxWorkflowException, GalleyMavenException { ArtifactRef artifactRef = getArtifact( path ); if ( artifactRef == null ) { throw new AproxWorkflowException( "Invalid artifact path: %s. Could not parse ArtifactRef from path.", path ); } StoreKey key = request.getSource(); Transfer transfer = getTransfer( key, path ); return pomReader.readLocalPom( artifactRef.asProjectVersionRef(), transfer, MavenPomView.ALL_PROFILES ); }
final ProjectVersionRef tr = tar.asProjectVersionRef(); ProjectRefCollection tprc = projects.get( tr ); if ( tprc == null )
final ProjectVersionRef tr = tar.asProjectVersionRef(); ProjectRefCollection tprc = projects.get( tr ); if ( tprc == null )
ar.asProjectVersionRef() ); try tcs = artifacts.listAvailableArtifacts( resolvedLocation, ar.asProjectVersionRef() );
ar.asProjectVersionRef() ); try tcs = artifacts.listAvailableArtifacts( resolvedLocation, ar.asProjectVersionRef() );
public Set<ProjectRelationship<?, ?>> getRelationshipsForPom( String path, DiscoveryConfig dc, PromoteRequest request, StoreKey... extraLocations ) throws AproxWorkflowException, GalleyMavenException, CartoDataException, AproxDataException { ArtifactRef artifactRef = getArtifact( path ); if ( artifactRef == null ) { return null; } StoreKey key = request.getSource(); Transfer transfer = getTransfer( key, path ); List<Location> locations = new ArrayList<>( extraLocations.length + 1 ); locations.add( transfer.getLocation() ); addLocations( locations, extraLocations ); MavenPomView pomView = pomReader.read( artifactRef.asProjectVersionRef(), transfer, locations, MavenPomView.ALL_PROFILES ); URI source = sourceManager.createSourceURI( key.toString() ); DiscoveryResult discoveryResult = modelProcessor.readRelationships( pomView, source, dc ); discoveryResult = patcherSupport.patch( discoveryResult, DepgraphPatcherConstants.ALL_PATCHERS, locations, pomView, transfer ); return discoveryResult.getAcceptedRelationships(); }