0

我正在尝试自动构建 Eclipse RCP 应用程序。我决定使用带有 tycho 插件的 maven。但是,我遵循了创建插件、功能和产品的教程。按照本教程,http ://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/似乎有点过时了。

但是,当我运行我的 mvn install 时,我得到:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.056s
[INFO] Finished at: Sat Aug 31 17:50:34 BST 2013
[INFO] Final Memory: 78M/411M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export (default-product-export) on project com.hal
lahan.premierProduct: Product includes native launcher but no target environment was specified -> [Help 1]
[ERROR]

在产品中,如果我取消选中使用本机启动器,我会遇到不同的问题:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export (default-product-export) on project com.hallahan.premierProduct : Execution default-product-export of goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export failed: Could not resolve plugin org.eclipse.core.resources.win32.x86_64_null; Path to dependency: -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]

任何帮助都将是一个很大的帮助,或者指出如何解决这些问题中的任何一个都会是一个很大的帮助。

4

1 回答 1

0

尝试将环境配置添加到您的 pom.xml 中:

<plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <environments>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86</arch>
            </environment>
            <environment>
              <os>linux</os>
              <ws>gtk</ws>
              <arch>x86_64</arch>
            </environment>
            <environment>
              <os>macosx</os>
              <ws>cocoa</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
        </configuration>
      </plugin>

此外,请查看链接以获取更多信息。

于 2013-08-31T18:35:47.043 回答