Tycho downloads p2.indexes on every build

I'm building an RCP and several other plug-ins with Maven & Tycho. This works very fine, unless one issue:

On every(!) build, Tycho loads all needed eclipse librarys, even when the where already downloaded 10 seconds ago. Aren't they saved automatically in the local repository, or am I missing some configuration? all p2.index es. But this is also annoying. Can I turn this off, so that it'll only check once a week?

  <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 artifacts as well as metadata files like content.jar and artifacts.jar are cached. p2 will do a timestamp comparison check only on each build (using HTTP HEAD) to check if the local cache is outdated.

If you want to avoid this, use maven offline mode (CLI option --offline)

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

上一篇: 在Android活动之间高效传递自定义对象数据[Mono Android]

下一篇: Tycho在每个构建下载p2.indexes