第谷:我该如何部署包装eclipse-plugin的源罐? [英] Tycho: How do I deploy sources jars of packaging eclipse-plugin?

查看:95
本文介绍了第谷:我该如何部署包装eclipse-plugin的源罐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的父pom中,我进行了以下配置以部署源jar:

In my parent pom I got this configuration to deploy sources jars:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-source-plugin</artifactId>
      <executions>
        <execution>
          <goals>
            <goal>jar</goal>
            <goal>test-jar</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

但是tycho构建模块忽略了这一点,因此没有在maven存储库中安装/部署它们的源代码.这意味着我不能将它们包括在程序集中(特别是如果程序集模块位于另一个git存储库中).

But the tycho build modules ignore that, so their sources aren't installed/deployed in the maven repository. Which means I can't include them in an assembly (especially if the assembly module is located in another git repository).

是否可以配置一个tycho插件来构建和部署源jar?

推荐答案

使用此:

  <plugin>
    <groupId>org.sonatype.tycho</groupId>
    <artifactId>maven-osgi-source-plugin</artifactId>
    <version>${tycho-version}</version>
    <executions>
      <execution>
        <id>plugin-source</id>
        <goals>
          <goal>plugin-source</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

请参见 https://github.com/jsievers /tycho-demo/blob/master/tychodemo.parent/pom.xml

这篇关于第谷:我该如何部署包装eclipse-plugin的源罐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆