Tycho在每个构建下载p2.indexes

我正在用Maven&Tycho构建一个RCP和其他几个插件。 这工作得很好,除非有一个问题:

在每一个(!)构建中,即使在10秒前已经下载的地方,Tycho也会加载所有需要的日食库。 它们不是自动保存在本地存储库中,还是缺少一些配置? 所有p2.index es。 但这也很烦人。 我可以关闭它,以便每周只检查一次吗?

  <properties>
    <tycho-version>0.15.0</tycho-version>
  </properties>

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

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

p2工件以及像content.jar和artifacts.jar这样的元数据文件被缓存。 p2将仅对每个版本(使用HTTP HEAD)进行时间戳比较检查,以检查本地缓存是否过期。

如果您想避免这种情况,请使用maven离线模式(CLI选项--offline)

链接地址: http://www.djcxy.com/p/66683.html

上一篇: Tycho downloads p2.indexes on every build

下一篇: How does DPAPI and ProtectedData.Protect() handle Disk Images/Clones in .net 4?