Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360461 - Maven cache contains corrupt artefact
Summary: Maven cache contains corrupt artefact
Status: RESOLVED WORKSFORME
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 345119
  Show dependency tree
 
Reported: 2011-10-10 12:22 EDT by Rüdiger Herrmann CLA
Modified: 2011-10-12 06:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-10-10 12:22:38 EDT
It seems that the maven repository cache at /opt/users/hudsonbuild/.m2 contains a corrupt artefact.

While building RAP using tycho (https://hudson.eclipse.org/hudson/job/rap-runtime/348), we get an 
  Exception reading bundle manifest of
  /opt/users/hudsonbuild/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.io/8.0.2.SNAPSHOT/org.eclipse.jetty.io-8.0.2.SNAPSHOT.jar
See the console output for the full stack trace.
Running this build locally works.

The build uses a (p2) repository to fetch from at http://build.eclipse.org/rt/rap/base-platforms/extra-dependencies. This repository contains Jetty bundles from a nightly build that apparently have no version timestamp (see bug 360459). Maven/Tycho (with good reason) seems to take these bundles from the cache even though they might not be equal to those from the remote repository.

Can the corrupt bundle(s) be removed from cache?
Comment 1 Eclipse Webmaster CLA 2011-10-11 11:21:50 EDT
So I can just rm -rf /opt/public/rt/rap/base-platforms/extra-dependencies/plugins/org.eclipse.jetty.* ?

-M.
Comment 2 Rüdiger Herrmann CLA 2011-10-11 11:52:19 EDT
(In reply to comment #1)
> So I can just rm -rf
> /opt/public/rt/rap/base-platforms/extra-dependencies/plugins/org.eclipse.jetty.*
> ?
> 
> -M.
No! Sorry if I wasn't clear. These are OK. The ounterparts from the maven cache seem corrupted. I'd rahter delete org.eclipse.jetty*SNAPSHOT* from the maven cache (or do whatever the maven/tycho-way of removing things from the cache is).
After that I would assume that the proper bundles would be taken from the repository /opt/public/rt/rap/base-platforms/extra-dependencies/plugins
Comment 3 Eclipse Webmaster CLA 2011-10-11 14:47:27 EDT
Ok, I've moved the org.eclipse.jetty.io(in ~hudsonbuild/.m2/repository/p2/osgi/bundle) out of the way .  Let me know if that helps.

-M.
Comment 4 Rüdiger Herrmann CLA 2011-10-12 06:37:58 EDT
Matt, thanks for your help.
In the meanwhile, Jetty 8.0.2 was released and bundles were made available. This solves the problem, either the artefafcts haven't been in cache yet or they are intact.