1and1 / ono-extra-enforcer-rules

Apache License 2.0
4 stars 0 forks source link

Define rules by tagname without implementation attribute #2

Closed masooh closed 9 years ago

masooh commented 9 years ago

This works for the standard rules, but is not described in http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html how to do that.

masooh commented 9 years ago

This will possibly not be possible as implementation attribute can only be ommited if object is in the same package as the Mojo. In this case: org.apache.maven.plugins.enforcer. See: https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Complex_Objects

leonard84 commented 9 years ago

You could add adapter classes in the org.apache.maven.plugins.enforcer package, that have the same name as the rules and simply extend them.