代码之家  ›  专栏  ›  技术社区  ›  user2735899

Maven在基本eclipse插件上安装tycho原生启动器问题

  •  0
  • user2735899  · 技术社区  · 11 年前

    我正在尝试自动化eclipse RCP应用程序的构建。我决定使用maven及其tycho插件。然而,我遵循了教程,在那里我创建了一个插件、功能和产品。遵循本教程, http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/ 看起来有点过时了。

    然而,当我运行mvn安装时,我会得到:

    [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]
    

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

    1 回复  |  直到 11 年前
        1
  •  0
  •   Alex K.    11 年前

    尝试将环境配置添加到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 链接获取更多信息。