【问题标题】:Maven install tycho native launcher issue on basic eclipse pluginMaven 在基本 Eclipse 插件上安装 tycho 本机启动器问题
【发布时间】:2013-09-04 05:46:30
【问题描述】:

我正在尝试自动构建 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]

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

【问题讨论】:

    标签: eclipse maven eclipse-rcp tycho


    【解决方案1】:

    尝试将环境配置添加到您的 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>
    

    另外,请查看this 链接了解更多信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-31
      • 2015-03-07
      • 2012-02-24
      • 2011-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多