diff options
Diffstat (limited to 'enforcer-rule')
-rwxr-xr-x | enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java b/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java index 4f5a6f6..4eae532 100755 --- a/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java +++ b/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java @@ -135,7 +135,9 @@ public abstract class AbstractEnforcerRule implements EnforcerRule { validateArtifact(previousArtifact); validateArtifact(currentArtifact); } catch (Exception e) { - throw new EnforcerRuleException("Exception while accessing artifacts", e); + helper.getLog().warn("Exception while accessing artifacts; skipping check.", e); + return; + //throw new EnforcerRuleException("Exception while accessing artifacts", e); } final Version previous = Version.parse(previousArtifact.getVersion()); |