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.

Bug 224023 - "Attach sources" action in Ant project which should search for sources in Maven repo does not work.
Summary: "Attach sources" action in Ant project which should search for sources in Mav...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 11:21 UTC by Tomas Danek
Modified: 2012-12-20 02:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-12-19 11:21:16 UTC
Product Version: NetBeans IDE Dev (Build 201212180001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
--------------
Testcase from http://wiki.netbeans.org/TS_72_ProjectsLibraries

- created ant j2se project 
- cp /Users/tomas/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar /tmp
- add dependency in j2seproject on /tmp/jfreechart-1.0.9.jar
- use in Main e.g. JFreeChart j;
- Cmd+click on JFreeChart, it opens generated source.
- click "Attach sources..." on top of editor window, it should search for suitable sources in maven repo, but nothing happens

both local and central repos are indexed, sources are present even locally in /Users/tomas/.m2/repository/jfree/jfreechart/1.0.9
Comment 1 Milos Kleint 2012-12-19 14:54:52 UTC
http://hg.netbeans.org/core-main/rev/3f92f401dd28

both source and javadoc should be fixed now.
Comment 2 Quality Engineering 2012-12-20 02:46:05 UTC
Integrated into 'main-golden', will be available in build *201212200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3f92f401dd28
User: Milos Kleint <mkleint@netbeans.org>
Log: #224023 when rewriting the query impl to be global we forgot to handle results for file out of maven repository that have proper SHA1 based binding to source/javadoc in repository in preferences (setup via SourceJavadocAttacher)