`
hezhiyu
  • 浏览: 60969 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

org.apache.maven.lifecycle.LifecycleExecutionException

阅读更多
工程从svn检出会出现如下异常:org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project gboat2.logging: Compilation failure
工程中的一些类也编译不通过,出现类似如下问题提示:
Multiple markers at this line
- The type Class is not generic; it cannot be parameterized with arguments <? extends
Throwable>
- The type Comparable is not generic; it cannot be parameterized with arguments <E>
试了一下用maven编译工程是没问题的,但eclipse自动编译就会出现错误提示,原因是eclipse自动编译和maven的编译是两套,有个优先级的问题。
解决办法是:选择工程的java build path中的order and export选项签,通过up 和down来调整maven dependencies和jre system library的先后顺序。

注:order就是使用class的顺序(因为可能出现class同名的情况)
export就是把用到的一些的lib和project同时发布.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics