private boolean isSafelyCacheable( RepositorySystemSession session, Artifact artifact ) { /* * The workspace/reactor is in flux so we better not assume definitive information for any of its * artifacts/projects. */ WorkspaceReader workspace = session.getWorkspaceReader(); if ( workspace == null ) { return true; } Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact( artifact ); return workspace.findArtifact( pomArtifact ) == null; }
public File findArtifact( Artifact artifact ) { File file = null; for ( WorkspaceReader reader : readers ) { file = reader.findArtifact( artifact ); if ( file != null ) { break; } } return file; }
public File findArtifact( Artifact artifact ) { File file = null; for ( WorkspaceReader reader : readers ) { file = reader.findArtifact( artifact ); if ( file != null ) { break; } } return file; }
@Override public File resolve(String groupId, String artifactId, String classifier, String extension, String version) throws IOException { File file = reactor.findArtifact(new DefaultArtifact(groupId, artifactId, classifier, extension, version)); return file == null ? fallback.resolve(String.format("mvn:%s/%s/%s/%s/%s", groupId, artifactId, version, extension, classifier)) : file; }
@Override public File resolve(String groupId, String artifactId, String classifier, String extension, String version) throws IOException { File file = reactor.findArtifact(new DefaultArtifact(groupId, artifactId, classifier, extension, version)); return file == null ? fallback.resolve(String.format("mvn:%s/%s/%s/%s/%s", groupId, artifactId, version, extension, classifier)) : file; }
@Override public File resolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException) throws IOException { File file = reactor.findArtifact(new DefaultArtifact(groupId, artifactId, classifier, extension, version)); return file == null ? fallback.resolve(String.format("mvn:%s/%s/%s/%s/%s", groupId, artifactId, version, extension, classifier), previousException) : file; }
@Override public File resolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException) throws IOException { File file = reactor.findArtifact(new DefaultArtifact(groupId, artifactId, classifier, extension, version)); return file == null ? fallback.resolve(String.format("mvn:%s/%s/%s/%s/%s", groupId, artifactId, version, extension, classifier), previousException) : file; }
@Override public File resolve(String url) throws IOException { Artifact artifact = toArtifact(url); File file = reactor.findArtifact(artifact); return file == null ? fallback.resolve(url) : file; }
@Override public File resolve(String url, Exception previousException) throws IOException { Artifact artifact = toArtifact(url); File file = reactor.findArtifact(artifact); return file == null ? fallback.resolve(url, previousException) : file; }
@Override public File resolve(String url, Exception previousException) throws IOException { Artifact artifact = toArtifact(url); File file = reactor.findArtifact(artifact); return file == null ? fallback.resolve(url, previousException) : file; }
private boolean isSafelyCacheable( RepositorySystemSession session, Artifact artifact ) { /* * The workspace/reactor is in flux so we better not assume definitive information for any of its * artifacts/projects. */ WorkspaceReader workspace = session.getWorkspaceReader(); if ( workspace == null ) { return true; } Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact( artifact ); return workspace.findArtifact( pomArtifact ) == null; }
@Override public File resolve(String url) throws IOException { Artifact artifact = toArtifact(url); File file = reactor.findArtifact(artifact); return file == null ? fallback.resolve(url) : file; }
private boolean isSafelyCacheable( RepositorySystemSession session, Artifact artifact ) { /* * The workspace/reactor is in flux so we better not assume definitive information for any of its * artifacts/projects. */ WorkspaceReader workspace = session.getWorkspaceReader(); if ( workspace == null ) { return true; } Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact( artifact ); return workspace.findArtifact( pomArtifact ) == null; }
private boolean isSafelyCacheable( RepositorySystemSession session, Artifact artifact ) { /* * The workspace/reactor is in flux so we better not assume definitive information for any of its * artifacts/projects. */ WorkspaceReader workspace = session.getWorkspaceReader(); if ( workspace == null ) { return true; } Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact( artifact ); return workspace.findArtifact( pomArtifact ) == null; }
private boolean isSafelyCacheable( RepositorySystemSession session, Artifact artifact ) { /* * The workspace/reactor is in flux so we better not assume definitive information for any of its * artifacts/projects. */ WorkspaceReader workspace = session.getWorkspaceReader(); if ( workspace == null ) { return true; } Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifact( artifact ); return workspace.findArtifact( pomArtifact ) == null; }
File file = workspace.findArtifact( artifact ); if ( file != null )
File file = workspace.findArtifact( artifact ); if ( file != null )