Maven sonor3.0 执行的时候报错

Vincent.Chan 发布于 2012/05/11 21:54
阅读 3K+
收藏 0
[ERROR] Failed to execute goal org.codehaus.sonar:sonar-maven-plugin:3.0:sonar (default-cli) on project iBaby: Execution default-cli of goal org.codehaus.sonar:sonar-maven-plugin:3.0:sonar failed: An API incompatibility was encountered while executing org.codehaus.sonar:sonar-maven-plugin:3.0:sonar: java.lang.NoSuchMethodError: org.apache.maven.lifecycle.LifecycleExecutor.execute(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/execution/ReactorManager;Lorg/apache/maven/monitor/event/EventDispatcher;)V

这个是什么错误 thanks
加载中
0
Z.han
Z.han
提示说不兼容,找不到方法!
0
江南白衣
江南白衣
你的maven版本?
Vincent.Chan
Vincent.Chan
该评论暂时无法显示,详情咨询 QQ 群:点此入群
0
Vincent.Chan
Vincent.Chan

是版本问题导致的,改成

<plugin>
    <groupId>org.codehaus.sonar</groupId>
    <artifactId>sonar-maven3-plugin</artifactId>
    <version>3.0</version>
</plugin>

就可以了

只是会java
我现在也碰到了一个和你一样的问题,可以详聊一下吗?
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部