You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The built-in rules of the maven-enforcer-plugin allow setting a level to not break the build (which is default behavior), but only log a warning, if a rule is violated:
As of version 1.4, you may add a level element to the rules. Valid values are WARN and ERROR. When level WARN is specified, the rule will only spit out a warning but will not fail the build.
(from: https://maven.apache.org/enforcer/maven-enforcer-plugin/usage.html)
Unfortunately, this doesn't apply to extra-enforcer-rules. As far as I can see, the built-in rules implement org.apache.maven.enforcer.rule.api.EnforcerRule2 (which adds the level-feature), whereas extra-enforcer-rules implements org.apache.maven.enforcer.rule.api.EnforcerRule.
The text was updated successfully, but these errors were encountered:
* Only the old EnforcerRule interface was implemented.
* So the extra-rules could not be set to warn only.
* Although the rules API version is now 1.4.1, using
1.4.1 of the enforcer-plugin is not possible, because
a lot of ITs are failing, then.
Fixes#96
* Only the old EnforcerRule interface was implemented.
* So the extra-rules could not be set to warn only.
* Although the rules API version is now 1.4.1, using
1.4.1 of the enforcer-plugin is not possible, because
a lot of ITs are failing, then.
Fixes#96
* Only the old EnforcerRule interface was implemented.
* So the extra-rules could not be set to warn only.
* Although the rules API version is now 1.4.1, using
1.4.1 of the enforcer-plugin is not possible, because
a lot of ITs are failing, then.
Fixes#96
The built-in rules of the maven-enforcer-plugin allow setting a
level
to not break the build (which is default behavior), but only log a warning, if a rule is violated:Unfortunately, this doesn't apply to extra-enforcer-rules. As far as I can see, the built-in rules implement
org.apache.maven.enforcer.rule.api.EnforcerRule2
(which adds the level-feature), whereas extra-enforcer-rules implementsorg.apache.maven.enforcer.rule.api.EnforcerRule
.The text was updated successfully, but these errors were encountered: