【问题标题】:Maven tycho to point to local p2 eclipse repositoryMaven tycho 指向本地 p2 eclipse 存储库
【发布时间】:2016-09-29 15:30:53
【问题描述】:

我在 Eclipse 中有一组带有产品的插件。我的目标是自动化交付:通过自动测试、自动创建功能和更新站点...我找到了像 http://www.vogella.com/tutorials/EclipseTycho/article.html#exercisetycho_configuration_parent 这样的教程,它在我有互联网的个人笔记本电脑上运行良好,但在我的工作计算机上却不行,因为我无法访问互联网。问题的部分是构建属性的配置:

<properties>
    <tycho.version>0.25.0</tycho.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <mars-repo.url>http://download.eclipse.org/releases/mars</mars-repo.url>
</properties>

<repositories>
     <repository>
          <id>mars</id> 
          <url>${mars-repo.url}</url>
          <layout>p2</layout>
    </repository>
</repositories>

我想将我的 url 指向我在 eclipse 存储库中的 p2 存储库,而不是在 Internet 上。有办法吗?

非常感谢您的帮助

【问题讨论】:

    标签: java eclipse maven tycho p2


    【解决方案1】:

    使用 features 目录中的 mvn clean install 在本地构建功能。这应该会生成/target/repository

    然后,在您的产品 pom.xml 中,您可以更新存储库以指向此本地存储库:

    <repositories>
        <repository>
            <id>mars</id> 
            <url>file:/C:/path-to-target/target/repository</url>
            <layout>p2</layout>
        </repository>
    </repositories>
    

    产品目录中的mvn clean package 应该为您提供使用本地功能的程序集。

    这里的答案部分也有一些细微的变化:Build local eclipse plugins using tycho pointing to local p2 repository

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-20
      • 2021-08-09
      • 2016-05-22
      • 2019-12-13
      • 1970-01-01
      • 2018-10-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多