maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Jackson (JIRA)" <j...@codehaus.org>
Subject [jira] (MENFORCER-224) Regression from 1.3.1 to 1.4 with bannedDependencies rule
Date Mon, 23 Feb 2015 22:47:18 GMT

    [ https://jira.codehaus.org/browse/MENFORCER-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364011#comment-364011
] 

Brian Jackson commented on MENFORCER-224:
-----------------------------------------

This just bit me too.  Any workaround?

> Regression from 1.3.1 to 1.4 with bannedDependencies rule
> ---------------------------------------------------------
>
>                 Key: MENFORCER-224
>                 URL: https://jira.codehaus.org/browse/MENFORCER-224
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 1.4
>         Environment: mvn --version
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T09:29:23-08:00)
> Maven home: /home/henning/.apache-maven
> Java version: 1.7.0_67, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.7.0-sun-1.7.0.67/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.17.7-200.fc20.x86_64", arch: "amd64", family: "unix"
>            Reporter: Henning Schmiedehausen
>            Assignee: Karl-Heinz Marbaise
>             Fix For: 1.4.1
>
>         Attachments: pom.xml
>
>
> the attached pom, when running "mvn enforcer:enforce" in the project will work with the
enforcer plugin 1.3.1 but fail with the enforcer plugin 1.4 with
> [,4\.11)
>        ^
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of
goal org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce failed: Unclosed character
class near index 7
> [,4\.11)
>        ^
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 	... 19 more
> Caused by: java.util.regex.PatternSyntaxException: Unclosed character class near index
7
> [,4\.11)
>        ^
> 	at java.util.regex.Pattern.error(Pattern.java:1924)
> 	at java.util.regex.Pattern.clazz(Pattern.java:2493)
> 	at java.util.regex.Pattern.sequence(Pattern.java:2030)
> 	at java.util.regex.Pattern.expr(Pattern.java:1964)
> 	at java.util.regex.Pattern.compile(Pattern.java:1665)
> 	at java.util.regex.Pattern.<init>(Pattern.java:1337)
> 	at java.util.regex.Pattern.compile(Pattern.java:1022)
> 	at java.util.regex.Pattern.matches(Pattern.java:1128)
> 	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:76)
> 	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:132)
> 	... 20 more
> Mostly because the version inclusion / exclusion expressions are not regexps.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message