maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] (MENFORCER-176) Throws NoSuchMethodError with Maven 2.0.x
Date Fri, 24 Jan 2014 18:18:49 GMT

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

Karl Heinz Marbaise commented on MENFORCER-176:
-----------------------------------------------

I've checked Maven 2.0.11 with the rule <dependencyConvergence/> without any problem.
                
> Throws NoSuchMethodError with Maven 2.0.x
> -----------------------------------------
>
>                 Key: MENFORCER-176
>                 URL: https://jira.codehaus.org/browse/MENFORCER-176
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin, Standard Rules
>    Affects Versions: 1.3.1
>         Environment: Mac OS, JDK 1.7.0
>            Reporter: Anders Hammar
>             Fix For: 1.3.2
>
>
> Building a Mojo project with Maven 2.0.x using enforcer and some rules I get this stacktrace:
> {quote}
> java.lang.NoSuchMethodError: org.apache.maven.project.MavenProject.getProjectBuilderConfiguration()Lorg/apache/maven/project/ProjectBuilderConfiguration;
> 	at org.apache.maven.shared.dependency.tree.DefaultDependencyTreeBuilder.buildDependencyTree(DefaultDependencyTreeBuilder.java:139)
> 	at org.apache.maven.shared.dependency.graph.internal.Maven2DependencyGraphBuilder.buildDependencyGraph(Maven2DependencyGraphBuilder.java:55)
> 	at org.apache.maven.plugins.enforcer.AbstractBanDependencies.getDependenciesToCheck(AbstractBanDependencies.java:126)
> 	at org.apache.maven.plugins.enforcer.AbstractBanDependencies.execute(AbstractBanDependencies.java:90)
> 	at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:177)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
> 	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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> {quote}

--
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

Mime
View raw message