public final class SimpleArtifactDescriptorPolicy extends Object implements ArtifactDescriptorPolicy
IGNORE_ERRORS, IGNORE_INVALID, IGNORE_MISSING, STRICT
Constructor and Description |
---|
SimpleArtifactDescriptorPolicy(boolean ignoreMissing,
boolean ignoreInvalid)
Creates a new error policy with the specified behavior.
|
SimpleArtifactDescriptorPolicy(int policy)
Creates a new error policy with the specified bit mask.
|
Modifier and Type | Method and Description |
---|---|
int |
getPolicy(RepositorySystemSession session,
ArtifactDescriptorPolicyRequest request) |
public SimpleArtifactDescriptorPolicy(boolean ignoreMissing, boolean ignoreInvalid)
ignoreMissing
- true
to ignore missing descriptors, false
to fail resolution.ignoreInvalid
- true
to ignore invalid descriptors, false
to fail resolution.public SimpleArtifactDescriptorPolicy(int policy)
policy
- The bit mask describing the policy.public int getPolicy(RepositorySystemSession session, ArtifactDescriptorPolicyRequest request)
getPolicy
in interface ArtifactDescriptorPolicy
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.