Re: How to get core sources for Maven based platform app
Peter Hansson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYNqYRYXAaJ3qP63NvaQFAZOuAza=wwEZNpSrxp7MmcB3w@mail.gmail.com> |
I believe I've figured out a way to do it: From the IDE: Go to "Services" Window and look under "Maven Repositories" node. You should see a node called "Repository hosting NetBeans modules" which has been added by the IDE. Now locate the jar (not .nbm) you are interested in, right-click it and select "Download sources". When you now browse your local repo you should see that there's now sources to go along with the jar. This will take me about 7 days to do for all of the core dependencies. :-( Peter On Sun, Jul 17, 2016 at 10:55 AM, Peter Hansson <[email protected] > wrote: > Hello, > > (this is one of those embarrassing questions which I feel I should be able > to figure out - given that I've now worked with platform apps for several > years - but I really don't get it) > > Here we go: > When working with a NB Platform app I often find myself debugging deep > into platform code. > > For my direct deps, e.g. org-openide-util, this works fine as I can get > the IDE to download the sources from the NB Maven repo. However for things > that are more in the core of the platform I wouldn't know how to get the > IDE to download the sources for me. > > Consider this: I'm happily debugging some code that uses WindowManager. > This source is available to me (via Maven repo) as it sits in > org-openide-windows. However I can only get so far as the actual Window > Manager, WindowManagerImpl, lives in core (org-netbeans-core-windows) and > for that I don't have the sources and wouldn't know how to get the IDE to > fetch it for me. > > On my app module I can see the core of the platform as a bunch of ".nbm" > dependencies listed under "Non-classpath Dependencies". But when I > right-click one of them, say org-netbeans-core-windows, and select > "Download sources" then nothing happens. > > How to solve this ? > > Peter >