如何在使用tycho

时间:2017-01-18 06:49:27

标签: maven eclipse-plugin dependencies osgi-bundle tycho

我正在使用tycho编译器构建一个eclipse插件,并使用p2存储库添加了大多数osgi依赖项。但是,我还想在pom的依赖关系标签中添加许多非osgi jar。但它没有从依赖标记中获取任何依赖项。 这是我的POM

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <name>test</name>
  <groupId>com.test.tycho</groupId>
  <artifactId>test</artifactId>  
  <version>0.0.1</version>
  <packaging>eclipse-plugin</packaging>

  <repositories>
    <repository>
      <id>Mars</id>
      <layout>p2</layout>
      <url>file:///E:/repo/eclipseRepo/</url>
    </repository>
  </repositories>
  <dependencies>
        <dependency>
            <groupId>com.test.tycho</groupId>
            <artifactId>util</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>com.test.tycho</groupId>
            <artifactId>generator</artifactId>
            <version>0.0.1</version>
        </dependency>
        <dependency>
            <groupId>com.test.tycho</groupId>
            <artifactId>tester</artifactId>
            <version>0.0.1</version>
        </dependency>

  </dependencies>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-maven-plugin</artifactId>
            <version>0.25.0</version>
            <extensions>true</extensions>
        </plugin>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-compiler-plugin</artifactId>
            <version>0.25.0</version>
       </plugin>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>target-platform-configuration</artifactId>
            <version>0.25.0</version>
            <configuration>
                <pomDependencies>consider</pomDependencies>
            </configuration>
        </plugin>
    </plugins>
  </build>
</project>

我尝试使用 target-platform-configuration 插件,但我想它也只考虑osgi jar。 如何在POM.xml中添加非osgi jar?

0 个答案:

没有答案