For a plain "Java application" project, how can I add a dependency or library from Maven? If I right click on "Libraries" in the projects pane, it only allows me to add local libraries. But if my project is a Maven Java Application, then there's the "Dependencies" node in the projects pane, and from there I can right click and choose "Add dependency...".
I'm using NetBeans 8.0.
You can either download the library manually e.g. from http://search.maven.org (don't forget the transitive dependencies as well!). Or if you're using Ant (the default project type in NetBeans): consider to use Ant Ivy to manage your dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With