Disable fetching of p2 repository indexes
Asked Answered
S

1

5

We're currently setting up maven and tycho to build eclipse plugins. Following the examples and documentations, we added some repositories with layout p2 like this:

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

Now, everytime we execute the pom, maven is "fetching" p2 indexes which takes quite a while. We see a lot of lines like

[INFO] Fetching p2.index (0B of 96B at 0B/s) from http://download.eclipse.org/releases/indigo/

and it take some significant time until it actually starts the build or clean or whatever.

Is there a way to disable the fetching, at least temporarily?

Skate answered 10/4, 2012 at 8:33 Comment(0)
B
8

You can use maven offline mode (commandline switch -o)

For details see https://bugs.eclipse.org/bugs/show_bug.cgi?id=357357

Ballottement answered 10/4, 2012 at 13:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.