diff options
author | Julien Eluard <[email protected]> | 2010-12-19 19:00:47 +0100 |
---|---|---|
committer | Julien Eluard <[email protected]> | 2010-12-19 19:00:47 +0100 |
commit | 94a8f7314607e7f4e9f5b5e207aa99e16f8d089e (patch) | |
tree | d1da05f9755f036bdd2f825f2635b46f41700eeb /enforcer-rule | |
parent | 80725e1e6eb1d394b6a11e75dfde286f284aa64b (diff) |
Skip non jar artifact.
Diffstat (limited to 'enforcer-rule')
-rw-r--r-- | enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java | 3 |
1 files changed, 2 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 5346e18..670a7b0 100644 --- a/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java +++ b/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java @@ -100,7 +100,8 @@ public abstract class AbstractEnforcerRule implements EnforcerRule { } final String type = project.getArtifact().getType(); if (!JAR_ARTIFACT_TYPE.equals(type)) { - throw new IllegalArgumentException("Only support '"+JAR_ARTIFACT_TYPE+"' as artifact type"); + helper.getLog().debug("Skipping non "+JAR_ARTIFACT_TYPE+" artifact."); + return; } final Artifact previousArtifact; |