1. Right-click on the “Dependencies” folder in the Projects view
  2. Enter some groupId, artifactId and version information
  3. Dependency will be added to the pom.xml and will appear under “Libraries” node of maven project
  4. Right-click lib node and “manually install artifact”, fill the path to the jar
  5. Jar should be installed to local Maven repo with coordinates entered in step 2

Netbeans will issue the following mvn command behind the scenes

mvn -DartifactId={artifact id} -DgroupId={group id} -Dversion={version} -Dpackaging=jar -Dfile={path to jar} -DgeneratePom=false install:install- file