安装期间编译失败

时间:2012-12-05 19:55:28

标签: maven tycho

在安装过程中,我收到以下错误:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0:compile (default-compile) on project com.iwaysoftware.eclipse.common: Compilation failure: Compilation failure:
[ERROR] /home/akravets/dev/workspaces/trunk/com.iwaysoftware.eclipse.common/src/com/iwaysoftware/eclipse/common/model/BaseTreeNode.java:[317,0]
[ERROR] public int getChildIndex(ITreeNode child) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getChildIndex(ITreeNode) of type BaseTreeNode must override a superclass method
[ERROR] /home/akravets/dev/workspaces/trunk/com.iwaysoftware.eclipse.common/src/com/iwaysoftware/eclipse/common/util/NamespaceUpdater.java:[13,0]
[ERROR] public boolean visit(IResourceDelta delta) throws CoreException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method visit(IResourceDelta) of type NamespaceUpdater must override a superclass method

我不明白的是,在Eclipse工作区中我没有看到这些错误。而且我第一次运行安装所有插件编译得很好。这是我的父POM http://pastebin.com/U8J180J0

1 个答案:

答案 0 :(得分:0)

看起来有些项目设置为1.5而我正在编译1.6:@Override compile error, implementing an interface (eclipse jdk1.6.0_23 linux)

还需要添加到父POM

<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>tycho-compiler-plugin</artifactId>
  <version>0.16.0</version>
  <configuration>
    <source>1.6</source>
    <target>1.6</target>
  </configuration>
</plugin>