maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kieselhorst (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MENFORCER-264) Properties can no longer be used in banned dependencies (regression)
Date Mon, 03 Apr 2017 07:57:41 GMT
Dennis Kieselhorst created MENFORCER-264:
--------------------------------------------

             Summary: Properties can no longer be used in banned dependencies (regression)
                 Key: MENFORCER-264
                 URL: https://issues.apache.org/jira/browse/MENFORCER-264
             Project: Maven Enforcer Plugin
          Issue Type: Bug
    Affects Versions: 1.4.1
         Environment: Linux
            Reporter: Dennis Kieselhorst
             Fix For: 1.4.2


After updating maven-enforcer-plugin from 1.3 to 1.4 a config like this
{code:xml}
                  <configuration>
                     <rules>
                        <bannedDependencies>
                           <includes>
                              <include>org.hibernate:hibernate-core:${hibernate.version}</include>
                           </includes>
                        </bannedDependencies>
                     </rules>
                  </configuration>
{code}
fails with
{noformat}
Caused by: java.util.regex.PatternSyntaxException: Illegal repetition near index 0
${hibernate\.version]
^
        at java.util.regex.Pattern.error(Pattern.java:1955)
        at java.util.regex.Pattern.closure(Pattern.java:3157)
        at java.util.regex.Pattern.sequence(Pattern.java:2134)
        at java.util.regex.Pattern.expr(Pattern.java:1996)
        at java.util.regex.Pattern.compile(Pattern.java:1696)
        at java.util.regex.Pattern.<init>(Pattern.java:1351)
        at java.util.regex.Pattern.compile(Pattern.java:1028)
        at java.util.regex.Pattern.matches(Pattern.java:1133)
        at org.apache.maven.plugins.enforcer.utils.ArtifactMatcher$Pattern.matches(ArtifactMatcher.java:148)
        at org.apache.maven.plugins.enforcer.utils.ArtifactMatcher$Pattern.match(ArtifactMatcher.java:113)
        at org.apache.maven.plugins.enforcer.BannedDependencies.compareDependency(BannedDependencies.java:149)
        at org.apache.maven.plugins.enforcer.BannedDependencies.checkDependencies(BannedDependencies.java:117)
        at org.apache.maven.plugins.enforcer.BannedDependencies.checkDependencies(BannedDependencies.java:82)
        at org.apache.maven.plugins.enforcer.AbstractBanDependencies.execute(AbstractBanDependencies.java:94)
        at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:150)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message