public class BanVulnerableDependencies extends EnforcerRuleSupport
Constructor and Description |
---|
BanVulnerableDependencies() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) |
void |
setAuthId(String authId)
Set client authentication from Maven settings server configuration.
|
void |
setClientConfiguration(org.sonatype.ossindex.service.client.OssindexClientConfiguration clientConfiguration)
Sonatype OSS Index client configuration.
|
void |
setCvssScoreThreshold(float cvssScoreThreshold)
CVSS-score threshold.
|
void |
setExcludeCoordinates(Set<MavenCoordinates> excludeCoordinates)
Set of coordinates to exclude from vulnerability matching.
|
void |
setExcludeVulnerabilityIds(Set<String> excludeVulnerabilityIds)
Set of Sonatype OSS Index
vulnerability identifiers to exclude from matching.
|
void |
setScope(String scope)
Limit scope of dependency resolution.
|
void |
setTransitive(boolean transitive)
Include transitive dependencies.
|
getCacheId, getLevel, isCacheable, isResultValid, lookup, lookup, setLevel
public void setClientConfiguration(org.sonatype.ossindex.service.client.OssindexClientConfiguration clientConfiguration)
public void setAuthId(String authId)
public void setScope(String scope)
public void setTransitive(boolean transitive)
public void setExcludeCoordinates(Set<MavenCoordinates> excludeCoordinates)
public void setCvssScoreThreshold(float cvssScoreThreshold)
public void setExcludeVulnerabilityIds(Set<String> excludeVulnerabilityIds)
public void execute(@Nonnull org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
org.apache.maven.enforcer.rule.api.EnforcerRuleException
Copyright © 2018–2019 Sonatype, Inc.. All rights reserved.