Class DependencyScanner
java.lang.Object
org.apache.maven.plugin.surefire.util.DependencyScanner
Scans dependencies looking for tests.
- Author:
- Aslak Knutsen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DependencyScanner
-
-
Method Details
-
scan
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
filter
public static List<org.apache.maven.artifact.Artifact> filter(List<org.apache.maven.artifact.Artifact> artifacts, List<String> artifactPatterns) - Parameters:
artifacts
- a list to filterartifactPatterns
- a list of strings in the formgroupId[:artifactId[:type[:classifier][:version]]]
- Returns:
- list of items from
artifacts
that match any of the filters ingroupArtifactIds
, empty if none match
-