aboutsummaryrefslogtreecommitdiffstats
path: root/enforcer-rule/src
diff options
context:
space:
mode:
Diffstat (limited to 'enforcer-rule/src')
-rw-r--r--enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java3
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;