public class SnapshotFinder extends AbstractSciJavaDependencyChecker
SciJavaDependencyChecker implementation that fails when it encounters
a SNAPSHOT dependency or parent.
Options:
| Constructor and Description |
|---|
SnapshotFinder(org.apache.maven.project.MavenProjectBuilder projectBuilder,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) |
| Modifier and Type | Method and Description |
|---|---|
String |
makeExceptionMessage() |
void |
setReactorModules(List<org.apache.maven.project.MavenProject> modules)
Using this method, a set of projects can be allowlisted to accept as
SNAPSHOT couplings.
|
boolean |
visit(DependencyNode node)
Starts the visit to the specified dependency node.
|
debug, endVisit, error, failed, info, isFailFast, isRoot, matches, setFailed, setFailFast, setGroupIds, setLog, stopVisitpublic SnapshotFinder(org.apache.maven.project.MavenProjectBuilder projectBuilder,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
public void setReactorModules(List<org.apache.maven.project.MavenProject> modules)
NB: Reproducibility is NOT guaranteed if an individual module is built instead of the whole reactor. This could trigger the downloading of a remote SNAPSHOT dependency which may or may not be compatible.
modules - A list of all MavenProjects in the core project's
reactor.public String makeExceptionMessage()
public boolean visit(DependencyNode node)
DependencyNodeVisitornode - the dependency node to visittrue to visit the specified dependency node's children, false to skip the
specified dependency node's children and proceed to its next siblingCopyright © 2014–2025 SciJava. All rights reserved.