如何使用Tycho

时间:2018-05-31 15:10:21

标签: eclipse eclipse-plugin tycho eclipse-pde

在我的PDE / Tycho Eclipse环境中,我想构建一个eclipse-repository类型的插件,其中包含每个特定平台的3个功能。

eclipse-repository插件从父插件读取其所有配置,其内容如下:

<properties>
  <tycho.version>0.26.0</tycho.version>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 </properties>

 <repositories>
  <repository>
   <id>neon</id>
   <layout>p2</layout>
   <url>http://download.eclipse.org/releases/neon/</url>
  </repository>
 </repositories>

 <build>
  <plugins>
   <plugin>

    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>${tycho.version}</version>
    <extensions>true</extensions>
   </plugin>

   <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>   
  </plugins>
 </build>

当我尝试构建eclpse-repository项目时,出现错误:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.26.0:assemble-repository (default-assemble-repository) on project ... : Execution default-assemble-repository of goal org.eclipse.tycho:tycho-p2-repository-plugin:0.26.0:assemble-repository failed: Cannot resolve dependencies of MavenProject ...

0 个答案:

没有答案