Replies: 1 comment 2 replies
-
you should be able to step through maven dependencies if you download the sources for them. You can also manipulate the source roots with help of the
its really simple. If the group, artifact id and version matches and NB has access to the sources, you can step through them while debugging. If you install an artifact in your local maven repo and add sources it should work. If you have a maven project open with matching artifact id etc it should find that one too (if not, try a maven clean install).
not quite sure what this means |
Beta Was this translation helpful? Give feedback.
-
If there is a set of separate Ant projects which are related only by creating a CLASSPATH dependency tree, and the root (dependency-wise only) project is run, it is quite natural (and very handy) that stepping into a dependency, pausing at a dependency breakpoint etc. works. The user is navigated between local Java sources without a problem.
It is less evident in case of Maven projects, but surprisingly NB is often capable of doing exactly that, even if jars are passed via a local repo as 1.0-SNAPSHOT.
I guess that it does not work for a jar downloaded from central maven repository even if sources are available, because NB has no idea that these sources are the same as those of a NB project on a local disk.
But still, it works somehow if the local user repo is concerned. My question 1 is: how this mechanism of associating a Maven dependency with a local NB project works and how far it goes?
A question 2: would it be possible to extend the mechanism to "build with dependencies"?
Beta Was this translation helpful? Give feedback.
All reactions