Community
Participate
Working Groups
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]
I had a similar problem but a different stack trace, not sure if it is related.
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 ***
Moved to https://github.com/eclipse-m2e/m2e-core/issues/