Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341025

Summary: download sources fails in some cases
Product: z_Archived Reporter: Igor Fedorenko <igor>
Component: m2eAssignee: Igor Fedorenko <igor>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: matthew
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=340884
Whiteboard:

Description Igor Fedorenko CLA 2011-03-25 23:15:33 EDT
Not sure if this is 100% reproducible, but at least sometimes when I open a type from a dependency, m2e is not able to download corresponding -sources.jar file. Here is a sample m2e log snippet


23:10:10.218 [New I/O client worker #37-1] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - Adding uri: http://repository.sonatype.org:80 for channel [id: 0x43d40793, /192.168.2.101:38462 => repository.sonatype.org/63.246.20.88:80]
23:10:10.218 [New I/O client worker #37-1] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - ConnectionsPool increment totalConnections 1
23:10:10.218 [New I/O client worker #37-1] INFO  o.e.m.c.i.e.AbstractTransferListenerAdapter - Downloaded http://repository.sonatype.org/content/groups/sonatype-grid/org/sonatype/sisu/sisu-inject-plexus/2.2.0/sisu-inject-plexus-2.2.0-sources.jar
23:10:10.227 [Worker-21] WARN  o.e.m.c.i.embedder.EclipseLogger - Failed to dispatch repository event to org.eclipse.m2e.core.internal.embedder.EclipseLocalRepositoryMaintainer: null
23:10:10.228 [Worker-21] ERROR o.e.m.j.internal.DownloadSourcesJob - Could not download sources for org.sonatype.sisu:sisu-inject-plexus:2.2.0
org.eclipse.core.runtime.CoreException: Could not resolve artifact org.sonatype.sisu:sisu-inject-plexus:jar:sources:2.2.0
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.resolve(MavenImpl.java:604) ~[org.eclipse.m2e.core/:na]
	at org.eclipse.m2e.jdt.internal.DownloadSourcesJob.download(DownloadSourcesJob.java:231) [org.eclipse.m2e.jdt/:na]
	at org.eclipse.m2e.jdt.internal.DownloadSourcesJob.downloadAttachments(DownloadSourcesJob.java:211) [org.eclipse.m2e.jdt/:na]
	at org.eclipse.m2e.jdt.internal.DownloadSourcesJob.downloadMaven(DownloadSourcesJob.java:186) [org.eclipse.m2e.jdt/:na]
	at org.eclipse.m2e.jdt.internal.DownloadSourcesJob.run(DownloadSourcesJob.java:142) [org.eclipse.m2e.jdt/:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [org.eclipse.core.jobs_3.5.100.v20101008.jar:na]
Comment 1 Matthew Piggott CLA 2011-03-28 10:56:30 EDT
I had a similar problem but a different stack trace, not sure if it is related.
Comment 2 Igor Fedorenko CLA 2011-03-28 23:37:16 EDT
the exception does not cause source download to fail, it is the other way around.

*** This bug has been marked as a duplicate of bug 341026 ***
Comment 3 Denis Roy CLA 2021-04-19 13:27:03 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/