This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For artifacts listed in a loaded index, MSJA ought to immediately return false if it knows that no source/Javadoc is going to be available. This would permit the fallback impl to be run instead.
Ought to also look for matching artifacts by SHA-1 hash. This would permit automatic attachment to well-known binary releases even if they do not happen to be in the local Maven repo. (Would be potentially too slow to do in the general Source/JavadocForBinaryQueryImplementation, but speed is not a significant concern here.)
(In reply to comment #1) > Ought to also look for matching artifacts by SHA-1 hash. Probably want to introduce an internal API for identifying a JAR (e.g. File -> Artifact) according to various levels of accuracy vs. performance. Bug #204816 comment #14 suggests a way to identify Maven-built JARs in arbitrary locations without using the index. Consider CPExtender.addRemoveJAR, EndorsedClassPathImpl, MavenFileOwnerQueryImpl.findCoordinates.
(In reply to comment #1) > Ought to also look for matching artifacts by SHA-1 hash. Filed separately for clarity: bug #205649.
core-main #c9a7c161f99d
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/c9a7c161f99d User: Jesse Glick <jglick@netbeans.org> Log: #202785: MavenSourceJavadocAttacher should punt if index claims there is no source/Javadoc