[ https://jira.codehaus.org/browse/MENFORCER-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MENFORCER-83: ------------------------------------ Description: The {{includes}} and {{excludes}} of the {{bannedDependencies}} rule support wildcards, but only for an entire section. They should be enhanced to support regular expressions. For instance instead of having {code:xml} <includes> <include>my.company:abc-api</include> <include>my.company:def-api</include> <include>my.company:ghi-api</include> <include>my.company:jkl-api</include> </includes> {code} one would specify {code} <includes> <include>my.company:.*-api</include> </includes> {code} To be compatible, the wildcard '\*' would be treated as regular expression '.\*' was: The includes and excludes of the bannedDependencies rule support wildcards, but only for an entire section. They should be enhanced to support regular expressions. For instance instead of having <includes> <include>my.company:abc-api</include> <include>my.company:def-api</include> <include>my.company:ghi-api</include> <include>my.company:jkl-api</include> </includes> one would specify <includes> <include>my.company:.*\-api</include> </includes> To be compatible, the wildcard '*' would be treated as regular expression '.*' > Banned dependencies should support regular expressions > ------------------------------------------------------ > > Key: MENFORCER-83 > URL: https://jira.codehaus.org/browse/MENFORCER-83 > Project: Maven 2.x Enforcer Plugin > Issue Type: Improvement > Components: Standard Rules > Affects Versions: 1.0-beta-1 > Reporter: Eric Lewis > > The {{includes}} and {{excludes}} of the {{bannedDependencies}} rule support > wildcards, but only for an entire section. > They should be enhanced to support regular expressions. > For instance instead of having > {code:xml} > <includes> > <include>my.company:abc-api</include> > <include>my.company:def-api</include> > <include>my.company:ghi-api</include> > <include>my.company:jkl-api</include> > </includes> > {code} > one would specify > {code} > <includes> > <include>my.company:.*-api</include> > </includes> > {code} > To be compatible, the wildcard '\*' would be treated as regular expression > '.\*' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira