Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho 0.11.0 always downloading content.xml and artifacts.xml from local p2 helios mirror

Tycho is expected to download remote p2 repository metadata once and
then only check for updates (which by itself can take long time, see [1]).

So unless you wipe local maven repository before each build, the
behaviour that you see appears to be a bug.

When version of Nexus is that? Assuming this is Nexus Pro with p2
support, do you know how often it is configured to check for remote p2
metadata updates (the parameter is called "Metadata Max Age" in p2 proxy
repo configuration UI).

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=337022

--
Regards,
Igor

On 11-05-03 03:55 AM, Dimo Velev wrote:
Hi guys,

I am completely new to tycho and eclipse RCP so this might be a trivial
problem.

Every time I run maven it first downloads the content.xml and
artifacts.xml files from the nexus helios p2 mirror repository. As these
files are pretty big (70 MB in total) it takes 3 minutes to finish a
build of a trivial project.

What can I do to fix that? I currently use mvn -o as a workaround but I
guess there should be a better way.

The corresponding logs from maven look like that:
--cut--
[INFO] Adding repository
http://LOCALREPO/nexus/content/repositories/eclipse-helios/
[INFO] Fetching content.xml (0B of 61.25MB at 0B/s) from
http://LOCALREPO/nexus/content/repositories/eclipse-helios/content.xml
[INFO] 1 operation remaining.
[INFO] Fetching content.xml (3.4kB of 61.25MB at 0B/s) from
http://LOCALREPO/nexus/content/repositories/eclipse-helios/content.xml
...
--cut--

Thank you in advance,
Dimo



Back to the top